| @@ 26-35 (lines=10) @@ | ||
| 23 | * |
|
| 24 | * @return bool |
|
| 25 | */ |
|
| 26 | public function enable() { |
|
| 27 | if ( $this->is_enabled() ) { |
|
| 28 | return false; |
|
| 29 | } |
|
| 30 | $this->enabled = true; |
|
| 31 | ||
| 32 | $this->enabled(); |
|
| 33 | ||
| 34 | return true; |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * Enable actions for inheriting classes |
|
| @@ 47-56 (lines=10) @@ | ||
| 44 | * |
|
| 45 | * @return bool |
|
| 46 | */ |
|
| 47 | public function disable() { |
|
| 48 | if ( ! $this->is_enabled() ) { |
|
| 49 | return false; |
|
| 50 | } |
|
| 51 | $this->enabled = false; |
|
| 52 | ||
| 53 | $this->disabled(); |
|
| 54 | ||
| 55 | return true; |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * Disable actions for inheriting classes |
|