for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author stev leibelt <[email protected]>
* @since 2013-09-30
*/
namespace Net\Bazzline\Component\Requirement;
* Class AbstractItem
*
* @package Net\Bazzline\Component\Requirement
abstract class AbstractItem implements ItemInterface
{
* @var bool
protected $isDisabled;
private $returnValueIfIsDisabled;
public function __construct()
$this->isDisabled = false;
$this->setReturnValueIfIsDisabledToTrue();
}
* @return bool
* @since 2013-09-29
public function isDisabled()
return $this->isDisabled;
* @return $this
public function disable()
$this->isDisabled = true;
return $this;
protected function getReturnValueIfIsDisabled()
protected function setReturnValueIfIsDisabledToFalse()
$this->returnValueIfIsDisabled = false;
protected function setReturnValueIfIsDisabledToTrue()
$this->returnValueIfIsDisabled = true;