diff --git a/src/XeroPHP/Models/PayrollUK/Employee.php b/src/XeroPHP/Models/PayrollUK/Employee.php index 410afc71..6c4c3dc2 100644 --- a/src/XeroPHP/Models/PayrollUK/Employee.php +++ b/src/XeroPHP/Models/PayrollUK/Employee.php @@ -93,15 +93,18 @@ public static function getProperties() 'gender' => [false, self::PROPERTY_TYPE_STRING, null, false, false], 'address' => [false, self::PROPERTY_TYPE_OBJECT, 'PayrollUK\\Employee\\Address', false, false], - 'firstName' => [true, self::PROPERTY_TYPE_STRING, null, false, false], - 'lastName' => [true, self::PROPERTY_TYPE_STRING, null, false, false], - 'dateOfBirth' => [true, self::PROPERTY_TYPE_DATE, '\\DateTimeInterface', false, false], - 'email' => [false, self::PROPERTY_TYPE_STRING, null, false, false], - 'phoneNumber' => [false, self::PROPERTY_TYPE_STRING, null, false, false], - 'updatedDateUTC' => [false, self::PROPERTY_TYPE_TIMESTAMP, '\\DateTimeInterface', false, false], - 'createdDateUTC' => [false, self::PROPERTY_TYPE_TIMESTAMP, '\\DateTimeInterface', false, false], - 'employment' => [false, self::PROPERTY_TYPE_OBJECT, 'PayrollUK\\Employee\\Employment', false, true], - 'payrollCalendarID' => [false, self::PROPERTY_TYPE_GUID, null, false, false] + 'firstName' => [true, self::PROPERTY_TYPE_STRING, null, false, false], + 'lastName' => [true, self::PROPERTY_TYPE_STRING, null, false, false], + 'dateOfBirth' => [true, self::PROPERTY_TYPE_DATE, '\\DateTimeInterface', false, false], + 'email' => [false, self::PROPERTY_TYPE_STRING, null, false, false], + 'phoneNumber' => [false, self::PROPERTY_TYPE_STRING, null, false, false], + 'updatedDateUTC' => [false, self::PROPERTY_TYPE_TIMESTAMP, '\\DateTimeInterface', false, false], + 'createdDateUTC' => [false, self::PROPERTY_TYPE_TIMESTAMP, '\\DateTimeInterface', false, false], + 'employment' => [false, self::PROPERTY_TYPE_OBJECT, 'PayrollUK\\Employee\\Employment', false, true], + 'payrollCalendarID' => [false, self::PROPERTY_TYPE_GUID, null, false, false], + 'startDate' => [true, self::PROPERTY_TYPE_DATE, '\\DateTimeInterface', false, false], + 'endDate' => [true, self::PROPERTY_TYPE_DATE, '\\DateTimeInterface', false, false], + 'isOffPayrollWorker' => [true, self::PROPERTY_TYPE_BOOLEAN, null, false, false] ]; } @@ -343,4 +346,28 @@ public function getCreatedDateUTC() { return $this->_data[ 'createdDateUTC' ]; } + + /** + * @return \DateTimeInterface + */ + public function getStartDate() + { + return $this->_data[ 'startDate' ]; + } + + /** + * @return \DateTimeInterface + */ + public function getEndDate() + { + return $this->_data[ 'endDate' ]; + } + + /** + * @return bool + */ + public function getIsOffPayrollWorker() + { + return $this->_data[ 'isOffPayrollWorker' ]; + } }