| 1 | <?php |
||
| 7 | trait HasStorageAdapter |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var |
||
| 11 | */ |
||
| 12 | protected $adapter; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param null $redirectUrl |
||
| 16 | * |
||
| 17 | * @return \Illuminate\Http\RedirectResponse |
||
| 18 | */ |
||
| 19 | public function authorize($redirectUrl = null) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return AbstractAdapter |
||
| 26 | */ |
||
| 27 | public function adapter() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public function __sleep() |
||
| 47 | } |
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: