Skip to content

Commit

Permalink
Merge pull request #47 from arbor-education/feature/2023-02-update
Browse files Browse the repository at this point in the history
2023-02 Update
  • Loading branch information
aaronlinley authored Feb 8, 2023
2 parents ecfd65d + 695896f commit 72a95c8
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/example-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

date_default_timezone_set('Europe/London');

return $api;
return $api;
3 changes: 1 addition & 2 deletions src/Arbor/Api/ServerErrorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function __construct(
$serverExceptionClass = null,
$serverExceptionMessage = null,
$serverExceptionTrace = null
)
{
) {
parent::__construct($message, $code, $previous);
$this->requestPayload = $requestPayload;
$this->responsePayload = $responsePayload;
Expand Down
18 changes: 18 additions & 0 deletions src/Arbor/Model/AcademicYearAssessment.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class AcademicYearAssessment extends ModelBase

const SETUP_COMPLETION_STARTED_DATETIME = 'setupCompletionStartedDatetime';

const DELETION_STARTED_DATETIME = 'deletionStartedDatetime';

const ALLOW_COMMENTS = 'allowComments';

protected $_resourceType = ResourceType::ACADEMIC_YEAR_ASSESSMENT;
Expand Down Expand Up @@ -190,6 +192,22 @@ public function setSetupCompletionStartedDatetime(\DateTime $setupCompletionStar
$this->setProperty('setupCompletionStartedDatetime', $setupCompletionStartedDatetime);
}

/**
* @return \DateTime
*/
public function getDeletionStartedDatetime()
{
return $this->getProperty('deletionStartedDatetime');
}

/**
* @param \DateTime $deletionStartedDatetime
*/
public function setDeletionStartedDatetime(\DateTime $deletionStartedDatetime = null)
{
$this->setProperty('deletionStartedDatetime', $deletionStartedDatetime);
}

/**
* @return bool
*/
Expand Down
18 changes: 18 additions & 0 deletions src/Arbor/Model/AdHocAssessmentBatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class AdHocAssessmentBatch extends ModelBase

const ASSESSMENT_REFERENCE_DATE = 'assessmentReferenceDate';

const DELETION_STARTED_DATETIME = 'deletionStartedDatetime';

protected $_resourceType = ResourceType::AD_HOC_ASSESSMENT_BATCH;

/**
Expand Down Expand Up @@ -97,4 +99,20 @@ public function setAssessmentReferenceDate(\DateTime $assessmentReferenceDate =
{
$this->setProperty('assessmentReferenceDate', $assessmentReferenceDate);
}

/**
* @return \DateTime
*/
public function getDeletionStartedDatetime()
{
return $this->getProperty('deletionStartedDatetime');
}

/**
* @param \DateTime $deletionStartedDatetime
*/
public function setDeletionStartedDatetime(\DateTime $deletionStartedDatetime = null)
{
$this->setProperty('deletionStartedDatetime', $deletionStartedDatetime);
}
}
18 changes: 18 additions & 0 deletions src/Arbor/Model/Behaviour.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class Behaviour extends ModelBase

const DESCRIPTION = 'description';

const BEHAVIOURAL_INCIDENT_LEVEL_WORKFLOW = 'behaviouralIncidentLevelWorkflow';

const SEVERITY = 'severity';

const ACTIVE = 'active';
Expand Down Expand Up @@ -86,6 +88,22 @@ public function setDescription($description = null)
$this->setProperty('description', $description);
}

/**
* @return BehaviouralIncidentLevelWorkflow
*/
public function getBehaviouralIncidentLevelWorkflow()
{
return $this->getProperty('behaviouralIncidentLevelWorkflow');
}

/**
* @param BehaviouralIncidentLevelWorkflow $behaviouralIncidentLevelWorkflow
*/
public function setBehaviouralIncidentLevelWorkflow(BehaviouralIncidentLevelWorkflow $behaviouralIncidentLevelWorkflow = null)
{
$this->setProperty('behaviouralIncidentLevelWorkflow', $behaviouralIncidentLevelWorkflow);
}

/**
* @return string
*/
Expand Down
18 changes: 18 additions & 0 deletions src/Arbor/Model/BehaviouralIncidentLevelWorkflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

class BehaviouralIncidentLevelWorkflow extends ModelBase
{
const NAME = 'name';

const LEVEL_OF_INCIDENT = 'levelOfIncident';

const AUTO_CLOSE = 'autoClose';
Expand Down Expand Up @@ -106,6 +108,22 @@ public static function retrieve($id)
return $gateway->retrieve(ResourceType::BEHAVIOURAL_INCIDENT_LEVEL_WORKFLOW, $id);
}

/**
* @return string
*/
public function getName()
{
return $this->getProperty('name');
}

/**
* @param string $name
*/
public function setName($name = null)
{
$this->setProperty('name', $name);
}

/**
* @return int
*/
Expand Down

0 comments on commit 72a95c8

Please sign in to comment.