1 | <?php |
||
32 | trait DelegatorWritableTrait |
||
33 | { |
||
34 | use WritableTrait, DelegatorTrait; |
||
35 | |||
36 | /** |
||
37 | * Override `isWritable()` in the WritableTrait. |
||
38 | * |
||
39 | * Delegator's writability is base on its registries |
||
40 | * |
||
41 | * {@inheritDoc} |
||
42 | */ |
||
43 | public function isWritable()/*# : bool */ |
||
55 | |||
56 | /** |
||
57 | * Override `setWritable()` in the WritableTrait |
||
58 | * |
||
59 | * {@inheritDoc} |
||
60 | */ |
||
61 | public function setWritable($writable) |
||
74 | |||
75 | /** |
||
76 | * Set writable to FALSE in all registries |
||
77 | * |
||
78 | * @return $this |
||
79 | * @access protected |
||
80 | */ |
||
81 | protected function setRegistryWritableFalse() |
||
90 | |||
91 | /** |
||
92 | * Set writable to TRUE at first matching registry |
||
93 | * |
||
94 | * @return $this |
||
95 | * @access protected |
||
96 | */ |
||
97 | protected function setRegistryWritableTrue() |
||
107 | } |
||
108 |