| 1 | <?php |
||
| 15 | class Controller extends PortWebController |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * WEB Callback handler only, all the others are for API from Mobile. |
||
| 20 | * |
||
| 21 | * @param $provider |
||
| 22 | * @param \App\Containers\SocialAuthentication\Actions\SocialLoginAction $action |
||
| 23 | * |
||
| 24 | * @return \Dingo\Api\Http\Response |
||
| 25 | */ |
||
| 26 | public function webAuthenticateAll($provider, SocialLoginAction $action) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param $provider |
||
| 35 | * |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | public function webRedirectAll($provider) |
||
| 42 | } |
||
| 43 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: