Total Complexity | 8 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | abstract class Field |
||
10 | { |
||
11 | protected $content; |
||
12 | |||
13 | public function __construct($content) |
||
14 | { |
||
15 | $this->content = $content; |
||
16 | |||
17 | if (method_exists($this, 'init')) { |
||
18 | $this->init(); |
||
19 | } |
||
20 | } |
||
21 | |||
22 | public function content() { |
||
24 | } |
||
25 | |||
26 | public function has($key) { |
||
27 | return array_key_exists($key, $this->content); |
||
28 | } |
||
29 | |||
30 | public function __get($key) { |
||
45 | } |
||
46 | } |
||
47 | |||
48 | abstract public function __toString(); |
||
49 | } |