1 | <?php |
||
15 | class GenericTypeHint extends TypeHint |
||
16 | { |
||
17 | /** |
||
18 | * @var null|Matchable |
||
19 | */ |
||
20 | protected $key; |
||
21 | |||
22 | /** |
||
23 | * @var null|Matchable |
||
24 | */ |
||
25 | protected $value; |
||
26 | |||
27 | /** |
||
28 | * GenericTypeHint constructor. |
||
29 | * @param string $name |
||
30 | * @param Matchable|null $key |
||
31 | * @param Matchable|null $value |
||
32 | */ |
||
33 | public function __construct(string $name, Matchable $value = null, Matchable $key = null) |
||
40 | |||
41 | /** |
||
42 | * @param iterable|mixed $values |
||
43 | * @return bool |
||
44 | */ |
||
45 | public function match($values): bool |
||
69 | } |
||
70 |