1 | <?php |
||
5 | abstract class BaseDecorator implements DecoratorInterface |
||
6 | { |
||
7 | /** |
||
8 | * An array of defaults for the decorator |
||
9 | * |
||
10 | * @var array $defaults; |
||
11 | */ |
||
12 | protected $defaults = []; |
||
13 | |||
14 | /** |
||
15 | * An array of currently set codes for the decorator |
||
16 | * |
||
17 | * @var array $current; |
||
18 | */ |
||
19 | protected $current = []; |
||
20 | |||
21 | 948 | public function __construct() |
|
25 | |||
26 | /** |
||
27 | * Load up the defaults for this decorator |
||
28 | */ |
||
29 | 948 | public function defaults() |
|
35 | |||
36 | /** |
||
37 | * Reset the currently set decorator |
||
38 | */ |
||
39 | 568 | public function reset() |
|
43 | |||
44 | /** |
||
45 | * Retrieve the currently set codes for the decorator |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | 576 | public function current() |
|
53 | } |
||
54 |