Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
9 / 9 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Detail | |
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\Core\Entities\EntityInterface; |
| 5 | use Apie\HtmlBuilders\Components\BaseComponent; |
| 6 | use Apie\HtmlBuilders\Interfaces\ComponentInterface; |
| 7 | use Apie\HtmlBuilders\Lists\ComponentHashmap; |
| 8 | |
| 9 | class Detail extends BaseComponent |
| 10 | { |
| 11 | public function __construct( |
| 12 | EntityInterface $entity, |
| 13 | SingleResourceActionList $resourceActionList, |
| 14 | ComponentInterface $table |
| 15 | ) { |
| 16 | parent::__construct( |
| 17 | [ |
| 18 | 'entity' => $entity, |
| 19 | ], |
| 20 | new ComponentHashmap([ |
| 21 | 'resourceActionList' => $resourceActionList, |
| 22 | 'table' => $table |
| 23 | ]) |
| 24 | ); |
| 25 | } |
| 26 | } |