1 | <?php |
||
6 | class IdentifierType implements Type { |
||
7 | |||
8 | public static $CLASS = __CLASS__; |
||
9 | |||
10 | /** @var string */ |
||
11 | private $target; |
||
12 | |||
13 | /** @var Type */ |
||
14 | private $primitive; |
||
15 | |||
16 | /** |
||
17 | * @param string $target Identified class |
||
18 | * @param Type $primitive |
||
19 | */ |
||
20 | public function __construct($target, Type $primitive) { |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | public function getTarget() { |
||
31 | |||
32 | /** |
||
33 | * @return \watoki\reflect\Type |
||
34 | */ |
||
35 | public function getPrimitive() { |
||
38 | |||
39 | /** |
||
40 | * @param mixed $value |
||
41 | * @return boolean |
||
42 | */ |
||
43 | public function is($value) { |
||
46 | |||
47 | public function __toString() { |
||
50 | } |