| 1 | <?php |
||
| 16 | abstract class AbstractItem implements ItemInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var bool |
||
| 20 | * @author stev leibelt <[email protected]> |
||
| 21 | * @since 2013-09-30 |
||
| 22 | */ |
||
| 23 | protected $isDisabled; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var bool |
||
| 27 | * @author stev leibelt <[email protected]> |
||
| 28 | * @since 2013-09-30 |
||
| 29 | */ |
||
| 30 | private $returnValueIfIsDisabled; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @author stev leibelt <[email protected]> |
||
| 34 | * @since 2013-09-30 |
||
| 35 | */ |
||
| 36 | public function __construct() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return bool |
||
| 44 | * @author stev leibelt <[email protected]> |
||
| 45 | * @since 2013-09-29 |
||
| 46 | */ |
||
| 47 | public function isDisabled() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return $this |
||
| 54 | * @author stev leibelt <[email protected]> |
||
| 55 | * @since 2013-09-29 |
||
| 56 | */ |
||
| 57 | public function disable() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return bool |
||
| 66 | * @author stev leibelt <[email protected]> |
||
| 67 | * @since 2013-09-30 |
||
| 68 | */ |
||
| 69 | protected function getReturnValueIfIsDisabled() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @author stev leibelt <[email protected]> |
||
| 76 | * @since 2013-09-30 |
||
| 77 | */ |
||
| 78 | protected function setReturnValueIfIsDisabledToFalse() |
||
| 82 | |||
| 83 | /** |
||
| 84 | * @author stev leibelt <[email protected]> |
||
| 85 | * @since 2013-09-30 |
||
| 86 | */ |
||
| 87 | protected function setReturnValueIfIsDisabledToTrue() |
||
| 91 | } |