| 1 | <?php |
||
| 14 | final class User |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $id; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string|null |
||
| 23 | */ |
||
| 24 | private $fullname; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string|null |
||
| 28 | */ |
||
| 29 | private $about; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string|null |
||
| 33 | */ |
||
| 34 | private $website; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var string|null |
||
| 38 | */ |
||
| 39 | private $url; |
||
| 40 | |||
| 41 | public function __construct(string $id, ?string $fullname, ?string $about, ?string $website, ?string $url) |
||
| 49 | |||
| 50 | public function getId(): string |
||
| 54 | |||
| 55 | public function getFullname(): ?string |
||
| 59 | |||
| 60 | public function getAbout(): ?string |
||
| 64 | |||
| 65 | public function getWebsite(): ?string |
||
| 69 | |||
| 70 | public function getUrl(): ?string |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return User |
||
| 77 | */ |
||
| 78 | public static function fromApi(array $data): self |
||
| 88 | } |
||
| 89 |