Unknown   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 17
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 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\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