Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
10 / 10 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Overview | |
100.00% |
10 / 10 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
10 / 10 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | namespace Apie\HtmlBuilders\Components\Resource; |
| 3 | |
| 4 | use Apie\HtmlBuilders\Components\BaseComponent; |
| 5 | use Apie\HtmlBuilders\Components\Dashboard\RawContents; |
| 6 | use Apie\HtmlBuilders\Interfaces\ComponentInterface; |
| 7 | use Apie\HtmlBuilders\Lists\ComponentHashmap; |
| 8 | |
| 9 | class Overview extends BaseComponent |
| 10 | { |
| 11 | /** |
| 12 | * @param array<string|int, mixed> $listData |
| 13 | * @param array<int, string> $columns |
| 14 | */ |
| 15 | public function __construct(array $listData, array $columns, ResourceActionList $resourceActionList, ?ComponentInterface $pagination = null) |
| 16 | { |
| 17 | parent::__construct( |
| 18 | [ |
| 19 | 'columns' => $columns, |
| 20 | 'list' => $listData, |
| 21 | ], |
| 22 | new ComponentHashmap([ |
| 23 | 'resourceActionList' => $resourceActionList, |
| 24 | 'pagination' => $pagination ?? new RawContents('') |
| 25 | ]) |
| 26 | ); |
| 27 | } |
| 28 | } |