Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
SingleResourceActionList
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2namespace Apie\HtmlBuilders\Components\Resource;
3
4use Apie\HtmlBuilders\Components\BaseComponent;
5use Apie\HtmlBuilders\Configuration\CurrentConfiguration;
6use Apie\HtmlBuilders\Lists\ActionList;
7
8class 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}