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

InvocationDelegate::getToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
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