1 | <?php |
||
12 | class SocialAuth |
||
13 | { |
||
14 | /** |
||
15 | * @var ParserInterface |
||
16 | */ |
||
17 | private $parser; |
||
18 | /** |
||
19 | * @var ClientInterface |
||
20 | */ |
||
21 | private $provider; |
||
22 | /** |
||
23 | * @var int |
||
24 | */ |
||
25 | private $providerType; |
||
26 | |||
27 | /** |
||
28 | * @param ParserInterface $parser |
||
29 | * @param ClientInterface $provider |
||
30 | * @return User |
||
|
|||
31 | */ |
||
32 | public function __construct(ParserInterface $parser, ClientInterface $provider) |
||
38 | |||
39 | public function getUser(): User |
||
65 | |||
66 | private function profileAttributes() |
||
73 | |||
74 | private function providerAttributes() |
||
84 | } |
||
85 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.