User   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 32
ccs 9
cts 9
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getMarker() 0 3 1
A getUser() 0 3 1
1
<?php declare(strict_types = 1);
2
3
namespace Apicart\FQL\Token\Token;
4
5
use Apicart\FQL\Tokenizer\Tokenizer;
6
use Apicart\FQL\Value\Token;
7
8
final class User extends Token
9
{
10
11
    /**
12
     * @var string
13
     */
14
    private $marker;
15
16
    /**
17
     * @var string
18
     */
19
    private $user;
20
21
22 11
    public function __construct(string $lexeme, int $position, string $marker, string $user)
23
    {
24 11
        $this->marker = $marker;
25 11
        $this->user = $user;
26
27 11
        parent::__construct(Tokenizer::TOKEN_TERM, $lexeme, $position);
28 11
    }
29
30
31 1
    public function getMarker(): string
32
    {
33 1
        return $this->marker;
34
    }
35
36
37 1
    public function getUser(): string
38
    {
39 1
        return $this->user;
40
    }
41
42
}
43