Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
7 / 7 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| SingleResourceActionList | |
100.00% |
7 / 7 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
7 / 7 |
|
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\Lists\ActionList; |
| 7 | |
| 8 | class SingleResourceActionList extends BaseComponent |
| 9 | { |
| 10 | public function __construct( |
| 11 | CurrentConfiguration $currentConfiguration, |
| 12 | ActionList $resourceActionList, |
| 13 | mixed $id |
| 14 | ) { |
| 15 | parent::__construct( |
| 16 | [ |
| 17 | 'actions' => $resourceActionList, |
| 18 | 'config' => $currentConfiguration, |
| 19 | 'id' => $id, |
| 20 | ] |
| 21 | ); |
| 22 | } |
| 23 | } |