| 1 | <?php |
||
| 9 | class Device implements \JsonSerializable |
||
| 10 | { |
||
| 11 | /** @var */ |
||
| 12 | private $device_id; |
||
| 13 | |||
| 14 | /** @var */ |
||
| 15 | private $ip_address; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Device constructor. |
||
| 19 | * @param $device_id |
||
| 20 | */ |
||
| 21 | public function __construct($device_id) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return array|mixed |
||
| 28 | */ |
||
| 29 | public function jsonSerialize() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return mixed |
||
| 36 | */ |
||
| 37 | public function getDeviceId() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param $device_id |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function setDeviceId($device_id) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return mixed |
||
| 55 | */ |
||
| 56 | public function getIpAddress() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param $ip_address |
||
| 63 | * @return $this |
||
| 64 | */ |
||
| 65 | public function setIpAddress($ip_address) |
||
| 71 | } |
||
| 72 |