Total Complexity | 1 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | abstract class Base |
||
7 | { |
||
8 | const PRIORITY_HIGH = 100; |
||
9 | const PRIORITY_LOW = -100; |
||
10 | |||
11 | protected $priority = 0; |
||
12 | |||
13 | public function __construct(int $priority = 0) |
||
14 | { |
||
15 | $this->priority = $priority; |
||
16 | } |
||
17 | |||
18 | abstract public function observe(string $key, $object); |
||
19 | |||
20 | /** |
||
21 | * This is for loggin/debugging purposes |
||
22 | * |
||
23 | * @return string |
||
24 | */ |
||
25 | abstract public function __toString(); |
||
26 | } |
||
27 |