Passed
Pull Request — master (#20)
by Christoffer
02:08
created

DirectivesTrait::getDirectivesAsArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Digia\GraphQL\Language\AST\Node;
4
5
trait DirectivesTrait
6
{
7
8
    /**
9
     * @var DirectiveNode[]
10
     */
11
    protected $directives;
12
13
    /**
14
     * @return DirectiveNode[]
15
     */
16
    public function getDirectives(): array
17
    {
18
        return $this->directives;
19
    }
20
21
    /**
22
     * @return array
23
     */
24
    public function getDirectivesAsArray(): array
25
    {
26
        // TODO: Implement this method.
27
        return [];
28
    }
29
}
30