for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Robo\State;
use Robo\State\Data;
trait StateAwareTrait
{
protected $state;
/**
* {@inheritdoc}
*/
public function getState()
return $this->state;
}
public function setState(Data $state)
$this->state = $state;
public function setStateValue($key, $value)
$this->state[$key] = $value;
public function updateState(Data $update)
$this->state->update($update);
public function resetState()
$this->state = new Data();