Test Failed
Push — master ( a0eed4...bb00ac )
by Kirill
149:40
created

DirectiveValueNode   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getArgumentNodes() 0 4 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\Frontend\AST\Invocation;
11
12
use Railt\Parser\Ast\Rule;
13
use Railt\SDL\Frontend\AST\Definition\Provider\TypeNameProvider;
14
15
/**
16
 * Class DirectiveValueNode
17
 */
18
class DirectiveValueNode extends Rule
19
{
20
    use TypeNameProvider;
21
22
    /**
23
     * @return iterable|ArgumentValueNode[]
24
     */
25
    public function getArgumentNodes(): iterable
26
    {
27
        yield from $this->find('ArgumentValue', 1);
28
    }
29
}
30