| 1 | <?php namespace App\Modules\Reporting\Services; |
||
| 7 | class ReportService extends BaseService |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var UserService |
||
| 11 | */ |
||
| 12 | protected $userService; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Init new object. |
||
| 16 | * |
||
| 17 | * @param ReportRepository $repo |
||
| 18 | * @return void |
||
|
|
|||
| 19 | */ |
||
| 20 | public function __construct(ReportRepository $repo, UserService $userService) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Render the given report db view based on the given |
||
| 28 | * condition. |
||
| 29 | * |
||
| 30 | * @param string $reportName |
||
| 31 | * @param array $conditions |
||
| 32 | * @param integer $perPage |
||
| 33 | * @param boolean $skipPermission |
||
| 34 | * @return object |
||
| 35 | */ |
||
| 36 | public function getReport($reportName, $conditions = [], $perPage = 0, $skipPermission = false) |
||
| 54 | } |
||
| 55 |
Adding a
@returnannotation 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.