for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DoS\ResourceBundle\Model;
trait StatableTrait
{
/**
* @var string
*/
protected $state;
* {@inheritdoc}
public function getState()
return $this->state;
}
public function setState($state)
$this->state = $state;
public function getAllStates()
throw new \LogicException('Override me.');
public function getStateGraph()
public function getStateTransitions()