ArrayConfigurationDriver   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
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