ArrayConfigurationDriver::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of Cors
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace Slick\Cors\Infrastructure;
13
14
use Slick\Configuration\ConfigurationInterface;
15
use Slick\Configuration\Driver\CommonDriverMethods;
16
17
/**
18
 * ArrayConfigurationDriver
19
 *
20
 * @package Slick\Cors\Infrastructure
21
 */
22
final class ArrayConfigurationDriver implements ConfigurationInterface
23
{
24
25
    use CommonDriverMethods;
26
27
    /**
28
     * Creates a ArrayConfigurationDriver
29
     *
30
     * @param array<string, mixed> $data
31
     */
32
    public function __construct(array $data)
33
    {
34
        $this->data = $data;
35
    }
36
}
37