Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| ApplicationConfiguration | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| createConfiguration | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | namespace Apie\HtmlBuilders\Configuration; |
| 3 | |
| 4 | use Apie\Core\BoundedContext\BoundedContextHashmap; |
| 5 | use Apie\Core\BoundedContext\BoundedContextId; |
| 6 | use Apie\Core\Context\ApieContext; |
| 7 | |
| 8 | class ApplicationConfiguration |
| 9 | { |
| 10 | /** |
| 11 | * @param array<int|string, mixed> $config |
| 12 | */ |
| 13 | public function __construct(private array $config = []) |
| 14 | { |
| 15 | $this->config = $config; |
| 16 | } |
| 17 | |
| 18 | public function createConfiguration( |
| 19 | ApieContext $context, |
| 20 | BoundedContextHashmap $boundedContextHashmap, |
| 21 | ?BoundedContextId $selected |
| 22 | ): CurrentConfiguration { |
| 23 | return new CurrentConfiguration($this->config, $context, $boundedContextHashmap, $selected); |
| 24 | } |
| 25 | } |