Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class ConstantValue implements ComparisonValueInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var mixed |
||
16 | */ |
||
17 | private $value; |
||
18 | |||
19 | /** |
||
20 | * @param mixed $value The constant value |
||
21 | */ |
||
22 | 9 | public function __construct($value) |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * Get the constant value |
||
29 | * |
||
30 | * @return mixed |
||
31 | */ |
||
32 | 4 | public function value() |
|
33 | { |
||
34 | 4 | return $this->value; |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 7 | public function get(ReflectionFunction $reflection) |
|
43 | } |
||
44 | } |
||
45 |