1 | <?php |
||
19 | class SocialAuthController extends Controller |
||
20 | { |
||
21 | /** |
||
22 | * Redirect the user to the Provider authentication page. |
||
23 | * |
||
24 | * @return Response |
||
25 | */ |
||
26 | public function redirectToAuthenticationServiceProvider($provider) |
||
30 | |||
31 | /** |
||
32 | * Obtain the user information from authentication service provider. |
||
33 | * |
||
34 | * @return Response |
||
35 | */ |
||
36 | public function handleAuthenticationServiceProviderCallback($provider) |
||
49 | |||
50 | /** |
||
51 | * @param $providerUser |
||
52 | * @param $provider |
||
53 | * |
||
54 | * @return bool|mixed |
||
55 | */ |
||
56 | private function findOrCreateUser($providerUser, $provider) |
||
64 | |||
65 | /** |
||
66 | * @param $providerUser |
||
67 | * @param $provider |
||
68 | * |
||
69 | * @return User |
||
70 | */ |
||
71 | private function createUser($providerUser, $provider) |
||
98 | |||
99 | /** |
||
100 | * @return mixed |
||
101 | */ |
||
102 | private function newUser() |
||
108 | |||
109 | /** |
||
110 | * @param $providerUser |
||
111 | * |
||
112 | * @return bool|mixed |
||
113 | */ |
||
114 | private function userExistsByProviderUserId($providerUser) |
||
123 | |||
124 | /** |
||
125 | * @param $providerUser |
||
126 | * |
||
127 | * @return bool |
||
128 | */ |
||
129 | private function userExistsByEmail($providerUser) |
||
137 | |||
138 | /** |
||
139 | * @param User $user |
||
140 | * |
||
141 | * @return mixed |
||
142 | */ |
||
143 | private function createUserApiKey(User $user) |
||
148 | } |
||
149 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.