| 1 | <?php |
||
| 5 | class Sender |
||
| 6 | { |
||
| 7 | private $id; |
||
| 8 | private $name; |
||
| 9 | private $sender; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Sender constructor. |
||
| 13 | * @param string $id |
||
| 14 | * @param string $name |
||
| 15 | * @param string $sender |
||
| 16 | */ |
||
| 17 | 1 | public function __construct($id, $name, $sender) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param array $response |
||
| 26 | * @return Sender |
||
| 27 | */ |
||
| 28 | 1 | public static function createFromResponseArray(array $response) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | 1 | public function getId() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | 1 | public function getName() |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 1 | public function getSender() |
|
| 60 | } |
||
| 61 |