Correction   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 37
ccs 4
cts 8
cp 0.5
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getType() 0 3 1
A getTokens() 0 3 1
1
<?php declare(strict_types = 1);
2
3
namespace Apicart\FQL\Value;
4
5
class Correction
6
{
7
8
    /**
9
     * @var mixed
10
     */
11
    private $type;
12
13
    /**
14
     * @var Token[]
15
     */
16
    private $tokens = [];
17
18
19
    /**
20
     * @param mixed $type
21
     * @param Token[] ...$tokens
22
     */
23 93
    public function __construct($type, Token ...$tokens)
24
    {
25 93
        $this->type = $type;
26 93
        $this->tokens = $tokens;
27 93
    }
28
29
30
    /**
31
     * @return mixed
32
     */
33
    public function getType()
34
    {
35
        return $this->type;
36
    }
37
38
39
    public function getTokens(): array
40
    {
41
        return $this->tokens;
42
    }
43
44
}
45