1 | <?php |
||
17 | class TenantsController extends AuthorizedController |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | protected $resource = Tenant::class; |
||
23 | |||
24 | /** |
||
25 | * List all tenants. |
||
26 | * |
||
27 | * @param \Cortex\Tenants\DataTables\Adminarea\TenantsDataTable $tenantsDataTable |
||
28 | * |
||
29 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
30 | */ |
||
31 | public function index(TenantsDataTable $tenantsDataTable) |
||
38 | |||
39 | /** |
||
40 | * List tenant logs. |
||
41 | * |
||
42 | * @param \Cortex\Tenants\Models\Tenant $tenant |
||
43 | * @param \Cortex\Foundation\DataTables\LogsDataTable $logsDataTable |
||
44 | * |
||
45 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
|
|||
46 | */ |
||
47 | public function logs(Tenant $tenant, LogsDataTable $logsDataTable) |
||
56 | |||
57 | /** |
||
58 | * Import tenants. |
||
59 | * |
||
60 | * @return \Illuminate\View\View |
||
61 | */ |
||
62 | public function import() |
||
71 | |||
72 | /** |
||
73 | * Hoard tenants. |
||
74 | * |
||
75 | * @param \Cortex\Foundation\Http\Requests\ImportFormRequest $request |
||
76 | * @param \Cortex\Foundation\Importers\DefaultImporter $importer |
||
77 | * |
||
78 | * @return void |
||
79 | */ |
||
80 | public function hoard(ImportFormRequest $request, DefaultImporter $importer) |
||
86 | |||
87 | /** |
||
88 | * List tenant import logs. |
||
89 | * |
||
90 | * @param \Cortex\Foundation\DataTables\ImportLogsDataTable $importLogsDatatable |
||
91 | * |
||
92 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
93 | */ |
||
94 | public function importLogs(ImportLogsDataTable $importLogsDatatable) |
||
103 | |||
104 | /** |
||
105 | * Create new tenant. |
||
106 | * |
||
107 | * @param \Cortex\Tenants\Models\Tenant $tenant |
||
108 | * |
||
109 | * @return \Illuminate\View\View |
||
110 | */ |
||
111 | public function create(Tenant $tenant) |
||
115 | |||
116 | /** |
||
117 | * Edit given tenant. |
||
118 | * |
||
119 | * @param \Cortex\Tenants\Models\Tenant $tenant |
||
120 | * |
||
121 | * @return \Illuminate\View\View |
||
122 | */ |
||
123 | public function edit(Tenant $tenant) |
||
127 | |||
128 | /** |
||
129 | * Show tenant create/edit form. |
||
130 | * |
||
131 | * @param \Cortex\Tenants\Models\Tenant $tenant |
||
132 | * |
||
133 | * @return \Illuminate\View\View |
||
134 | */ |
||
135 | protected function form(Tenant $tenant) |
||
150 | |||
151 | /** |
||
152 | * Store new tenant. |
||
153 | * |
||
154 | * @param \Cortex\Tenants\Http\Requests\Adminarea\TenantFormRequest $request |
||
155 | * @param \Cortex\Tenants\Models\Tenant $tenant |
||
156 | * |
||
157 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
158 | */ |
||
159 | public function store(TenantFormRequest $request, Tenant $tenant) |
||
163 | |||
164 | /** |
||
165 | * Update given tenant. |
||
166 | * |
||
167 | * @param \Cortex\Tenants\Http\Requests\Adminarea\TenantFormRequest $request |
||
168 | * @param \Cortex\Tenants\Models\Tenant $tenant |
||
169 | * |
||
170 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
171 | */ |
||
172 | public function update(TenantFormRequest $request, Tenant $tenant) |
||
176 | |||
177 | /** |
||
178 | * Process stored/updated tenant. |
||
179 | * |
||
180 | * @param \Illuminate\Foundation\Http\FormRequest $request |
||
181 | * @param \Cortex\Tenants\Models\Tenant $tenant |
||
182 | * |
||
183 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
184 | */ |
||
185 | protected function process(FormRequest $request, Tenant $tenant) |
||
214 | |||
215 | /** |
||
216 | * Destroy given tenant. |
||
217 | * |
||
218 | * @param \Cortex\Tenants\Models\Tenant $tenant |
||
219 | * |
||
220 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
221 | */ |
||
222 | public function destroy(Tenant $tenant) |
||
231 | } |
||
232 |
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.