Completed
Push — master ( db8578...85f9c3 )
by Kirill
10:30
created

InvocationDelegate   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 24
c 0
b 0
f 0
ccs 0
cts 6
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRule() 0 4 1
A getToken() 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\Compiler\Grammar\PP2\Delegate;
11
12
use Railt\Parser\Ast\Rule;
13
use Railt\Parser\Rule\Symbol;
14
15
/**
16
 * Class InvocationDelegate
17
 */
18
class InvocationDelegate extends BaseRuleDelegate
19
{
20
    public function getRule(): Symbol
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
21
    {
22
        $first = $this->getChild(0);
23
24
        switch ($first->getName()) {
25
            case 'T_INVOKE':
26
                return $this->getRule();
27
        }
28
29
        dd((string)$first);
30
    }
31
32
    private function getRule(): Symbol
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
33
    {
34
35
    }
36
37
    private function getToken(bool $skip)
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
Unused Code introduced by
The parameter $skip is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
38
    {
39
40
    }
41
}
42