1 | <?php |
||
10 | class PageController extends Controller |
||
11 | { |
||
12 | /** |
||
13 | * Service class for content crud. |
||
14 | * |
||
15 | * @var Larafolio\Http\Content\ContentCrud |
||
16 | */ |
||
17 | protected $contentCrud; |
||
18 | |||
19 | /** |
||
20 | * Construct. |
||
21 | * |
||
22 | * @param Larafolio\Http\Content\ContentCrud $contentCrud Service class for crud. |
||
23 | */ |
||
24 | public function __construct(ContentCrud $contentCrud) |
||
30 | |||
31 | /** |
||
32 | * Return all projects. |
||
33 | * |
||
34 | * @return \Illuminate\Http\JsonResponse |
||
35 | */ |
||
36 | public function index() |
||
40 | |||
41 | /** |
||
42 | * Show an individual page in the manager. |
||
43 | * |
||
44 | * @param string $slug Slug of the page to show. |
||
45 | * |
||
46 | * @return \Illuminate\Http\Response |
||
47 | */ |
||
48 | public function show($slug) |
||
54 | |||
55 | /** |
||
56 | * Return the page create page. |
||
57 | * |
||
58 | * @return \Illuminate\Http\Response |
||
59 | */ |
||
60 | public function create() |
||
64 | |||
65 | /** |
||
66 | * Add a new page to the portfolio. |
||
67 | * |
||
68 | * @param Larafolio\Http\Requests\AddResourceRequest $request Form request. |
||
69 | * |
||
70 | * @return \Illuminate\Http\Response |
||
71 | */ |
||
72 | public function store(AddResourceRequest $request) |
||
76 | |||
77 | /** |
||
78 | * Return the page edit form view. |
||
79 | * |
||
80 | * @param string $slug Slug for the page to edit. |
||
81 | * |
||
82 | * @return \Illuminate\Http\Response |
||
83 | */ |
||
84 | public function edit($slug) |
||
90 | |||
91 | /** |
||
92 | * Update a page. |
||
93 | * |
||
94 | * @param \Illuminate\Http\Request $request Request data. |
||
95 | * @param string $slug Slug of page to update. |
||
96 | * |
||
97 | * @return \Illuminate\Http\Response |
||
98 | */ |
||
99 | public function update(Request $request, $slug) |
||
105 | |||
106 | /** |
||
107 | * Remove a page from the portfolio. |
||
108 | * |
||
109 | * @param \Illuminate\Http\Request $request Request data. |
||
110 | * @param string $slug Slug of page to remove. |
||
111 | * |
||
112 | * @return \Illuminate\Http\Response |
||
113 | */ |
||
114 | public function destroy(Request $request, $slug) |
||
120 | } |
||
121 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..