Total Complexity | 5 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class TypedParameter extends Parameter |
||
14 | { |
||
15 | /** @var string */ |
||
16 | private $type; |
||
17 | |||
18 | /** @var mixed */ |
||
19 | private $value; |
||
20 | |||
21 | /** @var int */ |
||
22 | private $options; |
||
23 | |||
24 | /** |
||
25 | * @param string $type The supported type (native or class) |
||
26 | * @param mixed|ValueFactory $value |
||
27 | * @param int $options {@see Argument::supports()} |
||
28 | */ |
||
29 | public function __construct(string $type, $value, int $options = Argument::EXACT|Argument::COVARIANCE|Argument::CONTRAVARIANCE|Argument::VERY_STRICT) |
||
34 | } |
||
35 | |||
36 | public function type(): string |
||
39 | } |
||
40 | |||
41 | protected function valueFor(Argument $argument) |
||
54 |