| 1 | <?php |
||
| 8 | trait DebugAwareTrait |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Whether the debug mode is enabled. |
||
| 12 | * |
||
| 13 | * @var boolean |
||
| 14 | */ |
||
| 15 | private $debug = false; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Set application debug mode. |
||
| 19 | * |
||
| 20 | * @param boolean $debug The debug flag. |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | protected function setDebug($debug) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Retrieve the application debug mode. |
||
| 30 | * |
||
| 31 | * @return boolean |
||
| 32 | */ |
||
| 33 | public function debug() |
||
| 37 | } |
||
| 38 |