1 | <?php |
||
9 | class PersonaResponse extends AbstractResponse |
||
10 | { |
||
11 | private const ID = 'id'; |
||
12 | private const NAME = 'name'; |
||
13 | private const PROFILE_PICTURE_URL = 'profile_picture_url'; |
||
14 | private const SUCCESS = 'success'; |
||
15 | private const DATA = 'data'; |
||
16 | private const PAGING = 'paging'; |
||
17 | |||
18 | /** |
||
19 | * @var string|null |
||
20 | */ |
||
21 | protected $id; |
||
22 | |||
23 | /** |
||
24 | * @var string|null |
||
25 | */ |
||
26 | protected $name; |
||
27 | |||
28 | /** |
||
29 | * @var string|null |
||
30 | */ |
||
31 | protected $profilePictureUrl; |
||
32 | |||
33 | /** |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $data = []; |
||
37 | |||
38 | /** |
||
39 | * @var array|null |
||
40 | */ |
||
41 | protected $paging; |
||
42 | |||
43 | /** |
||
44 | * @var bool |
||
45 | */ |
||
46 | protected $success; |
||
47 | |||
48 | 4 | protected function parseResponse(array $response): void |
|
58 | |||
59 | 4 | public function getId(): ?string |
|
63 | |||
64 | 4 | public function getName(): ?string |
|
68 | |||
69 | 4 | public function getProfilePictureUrl(): ?string |
|
73 | |||
74 | /** |
||
75 | * @return \Kerox\Messenger\Model\Data[] |
||
76 | */ |
||
77 | 4 | public function getData(): array |
|
81 | |||
82 | 4 | public function isSuccess(): bool |
|
86 | |||
87 | 4 | private function setData(array $response): void |
|
95 | } |
||
96 |