1 | <?php |
||
7 | final class Constant |
||
8 | { |
||
9 | /** |
||
10 | * @var mixed |
||
11 | */ |
||
12 | private $value; |
||
13 | |||
14 | /** |
||
15 | * @param mixed $value |
||
16 | */ |
||
17 | public function __construct($value) |
||
21 | |||
22 | public function map(callable $fn): Constant |
||
26 | |||
27 | /** |
||
28 | * @param mixed $value |
||
29 | */ |
||
30 | public static function of($value): Constant |
||
34 | |||
35 | /** |
||
36 | * @return mixed |
||
37 | */ |
||
38 | public function extract() |
||
42 | } |
||
43 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.