Reduce::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
/**
3
 * This file is part of PHP-Yacc 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 PhpYacc\Lalr;
11
12
use PhpYacc\Grammar\Symbol;
13
14
/**
15
 * Class Reduce.
16
 */
17
class Reduce
18
{
19
    /**
20
     * @var Symbol
21
     */
22
    public $symbol;
23
24
    /**
25
     * @var int
26
     */
27
    public $number;
28
29
    /**
30
     * Reduce constructor.
31
     *
32
     * @param Symbol $symbol
33
     * @param int    $number
34
     */
35
    public function __construct(Symbol $symbol, int $number)
36
    {
37
        $this->symbol = $symbol;
38
        $this->number = $number;
39
    }
40
}
41