| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class SocialiteUser |
||
| 8 | { |
||
| 9 | private $providerId; |
||
| 10 | private $email; |
||
| 11 | private $firstname; |
||
| 12 | private $lastname; |
||
| 13 | private $pictureUrl; |
||
| 14 | |||
| 15 | public function __construct(string $providerId, string $email, string $firstname, string $lastname, string $pictureUrl = null) |
||
| 16 | { |
||
| 17 | $this->providerId = $providerId; |
||
| 18 | $this->email = $email; |
||
| 19 | $this->firstname = $firstname; |
||
| 20 | $this->lastname = $lastname; |
||
| 21 | $this->pictureUrl = $pictureUrl; |
||
| 22 | } |
||
| 23 | |||
| 24 | |||
| 25 | public function providerId(): string |
||
| 26 | { |
||
| 27 | return $this->providerId; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function email(): string |
||
| 31 | { |
||
| 32 | return $this->email; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function firstname(): string |
||
| 36 | { |
||
| 37 | return $this->firstname; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function lastname(): string |
||
| 43 | } |
||
| 44 | |||
| 45 | public function pictureUrl(): ?string |
||
| 48 | } |
||
| 49 | |||
| 50 | } |
||
| 51 |