1 | <?php |
||
20 | class ApiAuthenticate |
||
21 | { |
||
22 | /** |
||
23 | * The authentication guard instance. |
||
24 | * |
||
25 | * @var \Illuminate\Contracts\Auth\Guard |
||
26 | */ |
||
27 | protected $auth; |
||
28 | |||
29 | /** |
||
30 | * Create a new api authenticate middleware instance. |
||
31 | * |
||
32 | * @param \Illuminate\Contracts\Auth\Guard $auth |
||
33 | */ |
||
34 | public function __construct(Guard $auth) |
||
38 | |||
39 | /** |
||
40 | * Handle an incoming request. |
||
41 | * |
||
42 | * @param \Illuminate\Http\Request $request |
||
43 | * @param \Closure $next |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function handle($request, Closure $next) |
||
67 | } |
||
68 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read 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.