for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (c) Flipbox Digital Limited
* @license https://github.com/flipboxfactory/craft-ember/blob/master/LICENSE
* @link https://github.com/flipboxfactory/craft-ember/
*/
namespace flipbox\craft\ember\objects;
* @property bool $enabled
*
* @author Flipbox Factory <[email protected]>
* @since 2.0.0
trait StateMutatorTrait
{
* @inheritdoc
public function isEnabled()
return (bool)$this->enabled;
}
public function isDisabled()
return !$this->isEnabled();
public function toEnabled()
$this->enabled = true;
return $this;
public function toDisabled()
$this->enabled = false;