Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | class PersonaResponse extends AbstractResponse |
||
10 | { |
||
11 | /** |
||
12 | * @var Persona |
||
13 | */ |
||
14 | protected $persona; |
||
15 | |||
16 | /** |
||
17 | * @var bool |
||
18 | */ |
||
19 | protected $success; |
||
20 | |||
21 | /** |
||
22 | * @param array $response |
||
23 | */ |
||
24 | 3 | protected function parseResponse(array $response): void |
|
28 | 3 | } |
|
29 | |||
30 | 1 | public function getPersona(): Persona |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return string|null |
||
37 | */ |
||
38 | 1 | public function getId(): ?string |
|
39 | { |
||
40 | 1 | return $this->persona->getId(); |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return bool |
||
45 | */ |
||
46 | 1 | public function isSuccess(): bool |
|
49 | } |
||
50 | } |
||
51 |