| 1 | <?php declare(strict_types = 1); | ||
| 9 | final class DeviceServer | ||
| 10 | { | ||
| 11 | /** | ||
| 12 | * @var int | ||
| 13 | */ | ||
| 14 | private $id; | ||
| 15 | |||
| 16 | /** | ||
| 17 | * @var DateTimeInterface | ||
| 18 | */ | ||
| 19 | private $created; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * @var DateTimeInterface | ||
| 23 | */ | ||
| 24 | private $updated; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * @var string | ||
| 28 | */ | ||
| 29 | private $ip; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * @var string | ||
| 33 | */ | ||
| 34 | private $description; | ||
| 35 | |||
| 36 | /** | ||
| 37 | * @var string | ||
| 38 | */ | ||
| 39 | private $status; | ||
| 40 | |||
| 41 | /** | ||
| 42 | * @param array $structure | ||
| 43 | * @return DeviceServer | ||
| 44 | */ | ||
| 45 | public static function fromArray(array $structure) | ||
| 58 | |||
| 59 | /** | ||
| 60 | * @return int | ||
| 61 | */ | ||
| 62 | public function id(): int | ||
| 66 | |||
| 67 | /** | ||
| 68 | * @return DateTimeInterface | ||
| 69 | */ | ||
| 70 | public function created(): DateTimeInterface | ||
| 74 | |||
| 75 | /** | ||
| 76 | * @return DateTimeInterface | ||
| 77 | */ | ||
| 78 | public function updated(): DateTimeInterface | ||
| 82 | |||
| 83 | /** | ||
| 84 | * @return string | ||
| 85 | */ | ||
| 86 | public function ip(): string | ||
| 90 | |||
| 91 | /** | ||
| 92 | * @return string | ||
| 93 | */ | ||
| 94 | public function description(): string | ||
| 98 | |||
| 99 | /** | ||
| 100 | * @return string | ||
| 101 | */ | ||
| 102 | public function status(): string | ||
| 106 | } | ||
| 107 |