PointcutParser::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
/*
5
 * Go! AOP framework
6
 *
7
 * @copyright Copyright 2013, Lisachenko Alexander <[email protected]>
8
 *
9
 * This source file is subject to the license that is bundled
10
 * with this source code in the file LICENSE.
11
 */
12
13
namespace Go\Aop\Pointcut;
14
15
use Dissect\Parser\LALR1\Parser;
16
17
/**
18
 * Pointcut parser extends the default parser with parse table and strict typehint for grammar
19
 */
20
class PointcutParser extends Parser
21
{
22
    /**
23
     * {@inheritDoc}
24 31
     */
25
    public function __construct(PointcutGrammar $grammar)
26 31
    {
27 31
        $parseTable = include __DIR__ . '/PointcutParseTable.php';
28 31
        parent::__construct($grammar, $parseTable);
29
    }
30
}
31