Mixed   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A process() 0 3 1
A build() 0 7 2
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\Config\Property;
5
6
use Innmind\Config\{
7
    Property,
8
    Properties,
9
    Exception\SchemaNotParseable,
10
    Exception\InvalidArgumentException,
11
};
12
use Innmind\Immutable\Str;
13
14
final class Mixed implements Property
15
{
16 10
    public static function build(Str $schema, Properties $properties): Property
17
    {
18 10
        if ((string) $schema !== 'mixed') {
19 2
            throw new SchemaNotParseable((string) $schema);
20
        }
21
22 8
        return new self;
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28 7
    public function process($value)
29
    {
30 7
        return $value;
31
    }
32
}
33