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