| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Index extends Action |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var string model class to retreive the records on the collection. |
||
| 18 | */ |
||
| 19 | public string $searchClass; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string name of the form containing the filter data. |
||
| 23 | */ |
||
| 24 | public string $formName = ''; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritdoc |
||
| 28 | */ |
||
| 29 | 2 | public function init() |
|
| 30 | { |
||
| 31 | 2 | $this->searchClass ?: throw new InvalidConfigException( |
|
| 32 | $this::class . '::$searchClass must be set.' |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return DataProviderInterface | ARContractSearch |
||
| 38 | */ |
||
| 39 | 2 | public function run(): DataProviderInterface | ARContractSearch |
|
| 53 | } |
||
| 54 | } |
||
| 55 |