Unknown::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 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\Lexer\Result;
11
12
/**
13
 * Class Unknown
14
 */
15
final class Unknown extends Token
16
{
17
    /**
18
     * Unknown token name.
19
     */
20
    public const T_NAME = 'T_UNKNOWN';
21
22
    /**
23
     * Undefined constructor.
24
     * @param string $value
25
     * @param int $offset
26
     */
27 1
    public function __construct(string $value, int $offset = 0)
28
    {
29 1
        parent::__construct(static::T_NAME, $value, $offset);
30 1
    }
31
}
32