1 | <?php |
||
14 | class ContactsController extends AuthorizedController |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | protected $resource = 'contacts'; |
||
20 | |||
21 | /** |
||
22 | * Display a listing of the resource. |
||
23 | * |
||
24 | * @return \Illuminate\Http\Response |
||
25 | */ |
||
26 | public function index() |
||
33 | |||
34 | /** |
||
35 | * Display a listing of the resource logs. |
||
36 | * |
||
37 | * @return \Illuminate\Http\Response |
||
38 | */ |
||
39 | public function logs(ContactContract $contact) |
||
48 | |||
49 | /** |
||
50 | * Store a newly created resource in storage. |
||
51 | * |
||
52 | * @param \Cortex\Contacts\Http\Requests\Tenantarea\ContactFormRequest $request |
||
53 | * |
||
54 | * @return \Illuminate\Http\Response |
||
|
|||
55 | */ |
||
56 | public function store(ContactFormRequest $request) |
||
60 | |||
61 | /** |
||
62 | * Update the given resource in storage. |
||
63 | * |
||
64 | * @param \Cortex\Contacts\Http\Requests\Tenantarea\ContactFormRequest $request |
||
65 | * @param \Rinvex\Contacts\Contracts\ContactContract $contact |
||
66 | * |
||
67 | * @return \Illuminate\Http\Response |
||
68 | */ |
||
69 | public function update(ContactFormRequest $request, ContactContract $contact) |
||
73 | |||
74 | /** |
||
75 | * Delete the given resource from storage. |
||
76 | * |
||
77 | * @param \Rinvex\Contacts\Contracts\ContactContract $contact |
||
78 | * |
||
79 | * @return \Illuminate\Http\Response |
||
80 | */ |
||
81 | public function delete(ContactContract $contact) |
||
90 | |||
91 | /** |
||
92 | * Show the form for create/update of the given resource. |
||
93 | * |
||
94 | * @param \Rinvex\Contacts\Contracts\ContactContract $contact |
||
95 | * |
||
96 | * @return \Illuminate\Http\Response |
||
97 | */ |
||
98 | public function form(ContactContract $contact) |
||
108 | |||
109 | /** |
||
110 | * Process the form for store/update of the given resource. |
||
111 | * |
||
112 | * @param \Illuminate\Http\Request $request |
||
113 | * @param \Rinvex\Contacts\Contracts\ContactContract $contact |
||
114 | * |
||
115 | * @return \Illuminate\Http\Response |
||
116 | */ |
||
117 | protected function process(Request $request, ContactContract $contact) |
||
131 | } |
||
132 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.