| 1 | <?php |
||
| 9 | class Recipient extends Entity |
||
| 10 | { |
||
| 11 | protected $name; |
||
| 12 | protected $phone; |
||
| 13 | protected $notes; |
||
| 14 | protected $skipSMSNotifications = false; |
||
| 15 | protected $metadata = []; |
||
| 16 | protected $organization; |
||
| 17 | protected $timeCreated; |
||
| 18 | protected $timeLastModified; |
||
| 19 | |||
| 20 | protected $endpoint = 'recipients'; |
||
| 21 | |||
| 22 | protected static $properties = [ |
||
| 23 | 'id', |
||
| 24 | 'name', |
||
| 25 | 'phone', |
||
| 26 | 'notes', |
||
| 27 | 'skipSMSNotifications', |
||
| 28 | 'metadata', |
||
| 29 | 'organization', |
||
| 30 | 'timeCreated', |
||
| 31 | 'timeLastModified', |
||
| 32 | ]; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getName() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $name |
||
| 44 | */ |
||
| 45 | public function setName($name) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getPhone() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param string $phone |
||
| 60 | */ |
||
| 61 | public function setPhone($phone) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | public function getNotes() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @param string $notes |
||
| 76 | */ |
||
| 77 | public function setNotes($notes) |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @return boolean |
||
| 84 | */ |
||
| 85 | public function isSMSNotificationSkipped(): bool |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @param boolean $state |
||
| 92 | */ |
||
| 93 | public function skipSMSNotifications($state) |
||
| 97 | |||
| 98 | /** |
||
| 99 | * @return array |
||
| 100 | */ |
||
| 101 | public function getMetadata(): array |
||
| 105 | |||
| 106 | /** |
||
| 107 | * @return string |
||
| 108 | */ |
||
| 109 | public function getOrganization() |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @return \DateTime |
||
| 116 | */ |
||
| 117 | public function getTimeCreated() |
||
| 121 | |||
| 122 | /** |
||
| 123 | * @return \DateTime |
||
| 124 | */ |
||
| 125 | public function getTimeLastModified() |
||
| 129 | |||
| 130 | /** |
||
| 131 | * @throws \BadMethodCallException |
||
| 132 | */ |
||
| 133 | public function delete() |
||
| 137 | } |
||
| 138 |