for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ackintosh\Snidel\Result;
class Result
{
/** @var mix */
private $return;
/** @var string */
private $output;
/** @var Ackintosh\Snidel\Fork\Fork */
private $fork;
/** @var Ackintosh\Snidel\Task\Task */
private $task;
/** @var bool */
private $failure = false;
/** @var array */
private $error;
/**
* set return
*
* @param mix $return
* @return void
*/
public function setReturn($return)
$this->return = $return;
}
* return return value
* @return mix
public function getReturn()
return $this->return;
* set output
* @param string $output
public function setOutput($output)
$this->output = $output;
* return output
* @return string
public function getOutput()
return $this->output;
* @param Ackintosh\Snidel\Fork\Fork
public function setFork($fork)
$this->fork = $fork;
* @return Ackintosh\Snidel\Fork\Fork
public function getFork()
return $this->fork;
* @param Ackintosh\Snidel\Task\Task
public function setTask($task)
$this->task = $task;
* @return Ackintosh\Snidel\Task\Task
public function getTask()
return $this->task;
* @param array | null
public function setError($error)
$this->failure = true;
$this->error = $error;
* @return array | null
public function getError()
return $this->error;
* @return bool
public function isFailure()
return $this->failure;
public function __clone()
// to avoid point to same object.
$this->task = clone $this->task;