1 | <?php |
||
23 | class False_class extends SimpleXMLElement implements ArrayAccess { |
||
24 | /** |
||
25 | * Use this method to obtain correct instance |
||
26 | * |
||
27 | * @return False_class |
||
28 | */ |
||
29 | 36 | public static function instance () { |
|
36 | /** |
||
37 | * Getting any property |
||
38 | * |
||
39 | * @param string $item |
||
40 | * |
||
41 | * @return False_class |
||
42 | */ |
||
43 | public function __get ($item) { |
||
44 | return $this; |
||
45 | } |
||
46 | /** |
||
47 | * Getting any property |
||
48 | * |
||
49 | * @param string $item |
||
50 | * |
||
51 | * @return false |
||
52 | */ |
||
53 | public function __isset ($item) { |
||
54 | return false; |
||
55 | } |
||
56 | /** |
||
57 | * Calling of any method |
||
58 | * |
||
59 | * @param string $method |
||
60 | * @param mixed[] $params |
||
61 | * |
||
62 | * @return False_class |
||
63 | */ |
||
64 | 2 | public function __call ($method, $params) { |
|
67 | /** |
||
68 | * Calling as callable |
||
69 | * |
||
70 | * @return False_class |
||
71 | */ |
||
72 | public function __invoke () { |
||
73 | return $this; |
||
74 | } |
||
75 | /** |
||
76 | * @return string |
||
77 | */ |
||
78 | public function __toString () { |
||
79 | return ''; |
||
80 | } |
||
81 | /** |
||
82 | * If item exists |
||
83 | */ |
||
84 | public function offsetExists ($offset) { |
||
85 | return false; |
||
86 | } |
||
87 | /** |
||
88 | * Get item |
||
89 | */ |
||
90 | public function offsetGet ($offset) { |
||
91 | return $this; |
||
92 | } |
||
93 | /** |
||
94 | * Set item |
||
95 | */ |
||
96 | public function offsetSet ($offset, $value) { } |
||
97 | /** |
||
98 | * Delete item |
||
99 | */ |
||
100 | public function offsetUnset ($offset) { } |
||
101 | } |
||
102 |