Test Failed
Push — master ( 08b170...e6bc2a )
by Kirill
02:02
created

DirectiveBuilder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 8 1
1
<?php
2
/**
3
 * This file is part of Railt package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
declare(strict_types=1);
9
10
namespace Railt\SDL\Builder\Definition;
11
12
use Railt\Reflection\Contracts\Definition;
13
use Railt\Reflection\Definition\DirectiveDefinition;
14
15
/**
16
 * Class DirectiveBuilder
17
 */
18
class DirectiveBuilder extends TypeDefinitionBuilder
19
{
20
    /**
21
     * @return Definition
22
     * @throws \Railt\SDL\Exception\SyntaxException
23
     */
24
    public function build(): Definition
25
    {
26
        $directive = $this->bind(new DirectiveDefinition($this->document, $this->getName()));
27
28
        //
29
30
        return $directive;
31
    }
32
}
33