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

DirectiveBuilder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 6 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\Invocation;
11
12
use Railt\Reflection\Contracts\Definition;
13
use Railt\Reflection\Invocation\DirectiveInvocation;
14
use Railt\SDL\Builder\Utils;
15
16
/**
17
 * Class DirectiveBuilder
18
 */
19
class DirectiveBuilder extends TypeInvocationBuilder
20
{
21
    /**
22
     * @return Definition
23
     * @throws \Railt\SDL\Exception\SyntaxException
24
     */
25
    public function build(): Definition
26
    {
27
        $directive = new DirectiveInvocation($this->document, $this->getName());
28
29
        return $directive;
30
    }
31
}
32