ObjectNode   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
wmc 1
lcom 1
cbo 2
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Linio\Component\Input\Node;
6
7
class ObjectNode extends BaseNode
8
{
9
    public function getValue(string $field, $value)
10
    {
11
        $this->checkConstraints($field, $value);
12
13
        return $this->instantiator->instantiate($this->type, $value);
14
    }
15
}
16