Passed
Push — trunk ( 37af04...c71cc1 )
by Christian
13:15 queued 12s
created

CompilerConfiguration::getConfiguration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Storefront\Theme;
4
5
/**
6
 * @internal - may be changed in the future
7
 */
8
class CompilerConfiguration extends AbstractCompilerConfiguration
9
{
10
    /**
11
     * @var array<string, mixed>
12
     */
13
    private array $configuration;
14
15
    /**
16
     * @param array<string, mixed> $configuration
17
     */
18
    public function __construct(array $configuration)
19
    {
20
        $this->configuration = $configuration;
21
    }
22
23
    public function getConfiguration(): array
24
    {
25
        return $this->configuration;
26
    }
27
28
    /**
29
     * @return mixed
30
     */
31
    public function getValue(string $key)
32
    {
33
        return $this->configuration[$key] ?? null;
34
    }
35
}
36