1 | <?php |
||
11 | abstract class ResourceNode { |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $value; |
||
17 | |||
18 | /** |
||
19 | * @param string $value |
||
20 | */ |
||
21 | public function __construct($value) { |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | public function getValue() { |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | public abstract function getValueType(); |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getType() { |
||
43 | |||
44 | /** |
||
45 | * Returns if $target is equals to the current resource |
||
46 | * |
||
47 | * @param mixed $target |
||
48 | * @return boolean |
||
49 | */ |
||
50 | public abstract function equals($target); |
||
51 | } |
||
52 |