FieldContext   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getField() 0 4 1
1
<?php
2
3
namespace Arthem\GraphQLMapper\Mapping\Context;
4
5
use Arthem\GraphQLMapper\Mapping\Field;
6
use Arthem\GraphQLMapper\Mapping\FieldContainer;
7
use Arthem\GraphQLMapper\Mapping\SchemaContainer;
8
9
class FieldContext extends ContainerContext
10
{
11
    /**
12
     * @var Field
13
     */
14
    private $field;
15
16
    /**
17
     * @param Field           $field
18
     * @param FieldContainer  $container
19
     * @param SchemaContainer $schema
20
     */
21
    public function __construct(Field $field, FieldContainer $container, SchemaContainer $schema)
22
    {
23
        $this->field = $field;
24
        parent::__construct($container, $schema);
25
    }
26
27
    /**
28
     * @return Field
29
     */
30
    public function getField()
31
    {
32
        return $this->field;
33
    }
34
}
35