1 | <?php |
||
10 | class ReportsController extends BaseApiController |
||
11 | { |
||
12 | /** |
||
13 | * List of all route actions that the base api controller |
||
14 | * will skip permissions check for them. |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $skipPermissionCheck = ['getReport']; |
||
18 | |||
19 | /** |
||
20 | * Init new object. |
||
21 | * |
||
22 | * @param ReportRepository $repo |
||
23 | * @param CoreConfig $config |
||
24 | * @return void |
||
|
|||
25 | */ |
||
26 | public function __construct(ReportRepository $repo, CoreConfig $config) |
||
30 | |||
31 | /** |
||
32 | * Render the given report name with the given conditions. |
||
33 | * |
||
34 | * @param \Illuminate\Http\Request $request |
||
35 | * @param string $reportName Name of the requested report |
||
36 | * @param integer $perPage Number of rows per page default all data. |
||
37 | * @return \Illuminate\Http\Response |
||
38 | */ |
||
39 | public function getReport(Request $request, $reportName, $perPage = 0) |
||
43 | } |
||
44 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.