Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
9 / 9 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ResourceActionList | |
100.00% |
9 / 9 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
9 / 9 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | namespace Apie\HtmlBuilders\Components\Resource; |
| 3 | |
| 4 | use Apie\HtmlBuilders\Components\BaseComponent; |
| 5 | use Apie\HtmlBuilders\Configuration\CurrentConfiguration; |
| 6 | use Apie\HtmlBuilders\Interfaces\ComponentInterface; |
| 7 | use Apie\HtmlBuilders\Lists\ActionList; |
| 8 | use Apie\HtmlBuilders\Lists\ComponentHashmap; |
| 9 | |
| 10 | class ResourceActionList extends BaseComponent |
| 11 | { |
| 12 | public function __construct( |
| 13 | CurrentConfiguration $currentConfiguration, |
| 14 | ActionList $resourceActionList, |
| 15 | ComponentInterface $filterColumns, |
| 16 | ) { |
| 17 | parent::__construct( |
| 18 | [ |
| 19 | 'actions' => $resourceActionList, |
| 20 | 'config' => $currentConfiguration, |
| 21 | ], |
| 22 | new ComponentHashmap([ |
| 23 | 'filterColumns' => $filterColumns, |
| 24 | ]) |
| 25 | ); |
| 26 | } |
| 27 | } |