Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
BoundedContextSelect
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
1 / 1
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
1 / 1
2
1<?php
2namespace Apie\HtmlBuilders\Components\Layout;
3
4use Apie\HtmlBuilders\Components\BaseComponent;
5use Apie\HtmlBuilders\Configuration\CurrentConfiguration;
6use Apie\HtmlBuilders\Lists\ComponentHashmap;
7
8class BoundedContextSelect extends BaseComponent
9{
10    public function __construct(
11        CurrentConfiguration $currentConfiguration
12    ) {
13        $contextId = $currentConfiguration->getSelectedBoundedContextId();
14        parent::__construct(
15            [
16                'selectedBoundedContextId' => $contextId ? $contextId->toNative() : null,
17                'boundedContextHashmap' => $currentConfiguration->getBoundedContextHashmap(),
18                'path' => $currentConfiguration->getContextUrl('/../'),
19            ],
20            new ComponentHashmap([
21            ])
22        );
23    }
24}