1 | <?php |
||
10 | class TeamsController extends Controller |
||
11 | { |
||
12 | public function __construct() |
||
16 | /** |
||
17 | * Display all teams. |
||
18 | */ |
||
19 | public function index() |
||
24 | |||
25 | /** |
||
26 | * Show the form for creating a new team. |
||
27 | */ |
||
28 | public function create() |
||
33 | |||
34 | /** |
||
35 | * Store a newly created team in database. |
||
36 | */ |
||
37 | |||
38 | public function store(Request $request) |
||
45 | |||
46 | /** |
||
47 | * Display details from the specified team. |
||
48 | */ |
||
49 | |||
50 | public function show($id) |
||
54 | |||
55 | /** |
||
56 | * Show the form for editing the specified resource. |
||
57 | */ |
||
58 | public function edit($id) |
||
62 | |||
63 | /** |
||
64 | * Update the specified team in the database. |
||
65 | */ |
||
66 | public function update(Request $request, $id) |
||
70 | |||
71 | /** |
||
72 | * Remove the specified team from the database. |
||
73 | */ |
||
74 | public function destroy($id) |
||
78 | } |
||
79 |
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.