Completed
Push — master ( 4bb4eb...402013 )
by Arthur
03:35
created

FieldContext::getField()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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