Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Identity |
||
8 | { |
||
9 | private $id; |
||
10 | private $email; |
||
11 | private $firstname; |
||
12 | private $lastname; |
||
13 | private $picture; |
||
14 | |||
15 | public function __construct(string $id, string $email, string $firstname, string $lastname, string $picture = null) |
||
16 | { |
||
17 | $this->id = $id; |
||
18 | $this->email = $email; |
||
19 | $this->firstname = $firstname; |
||
20 | $this->lastname = $lastname; |
||
21 | $this->picture = $picture; |
||
22 | } |
||
23 | |||
24 | public function toArray() |
||
34 | ]; |
||
35 | } |
||
37 |