| 1 | <?php |
||
| 9 | class Organization extends Entity |
||
| 10 | { |
||
| 11 | protected $name; |
||
| 12 | protected $email; |
||
| 13 | protected $image; |
||
| 14 | protected $timezone; |
||
| 15 | protected $country; |
||
| 16 | protected $timeCreated; |
||
| 17 | protected $timeLastModified; |
||
| 18 | protected $delegatees = []; |
||
| 19 | |||
| 20 | protected $endpoint = 'organization'; |
||
| 21 | |||
| 22 | protected static $properties = [ |
||
| 23 | 'id', |
||
| 24 | 'name', |
||
| 25 | 'email', |
||
| 26 | 'image', |
||
| 27 | 'timezone', |
||
| 28 | 'country', |
||
| 29 | 'timeCreated', |
||
| 30 | 'timeLastModified', |
||
| 31 | 'delegatees', |
||
| 32 | ]; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return mixed |
||
| 36 | */ |
||
| 37 | public function getName() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return mixed |
||
| 44 | */ |
||
| 45 | public function getEmail() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return mixed |
||
| 52 | */ |
||
| 53 | public function getImage() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function getTimezone() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return mixed |
||
| 68 | */ |
||
| 69 | public function getCountry() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return array |
||
| 76 | */ |
||
| 77 | public function getDelegatees(): array |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @return \DateTime |
||
| 84 | */ |
||
| 85 | public function getTimeCreated() |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @return \DateTime |
||
| 92 | */ |
||
| 93 | public function getTimeLastModified() |
||
| 97 | |||
| 98 | /** |
||
| 99 | * @throws \BadMethodCallException |
||
| 100 | */ |
||
| 101 | public function update() |
||
| 105 | |||
| 106 | /** |
||
| 107 | * @param array $metadata |
||
| 108 | * @internal |
||
| 109 | */ |
||
| 110 | public function setMetadata(array $metadata) |
||
| 114 | } |
||
| 115 |