for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace pmill\Scheduler\Tasks;
class Shell extends Task
{
/**
* @var string
*/
protected $command;
* @var array
protected $arguments = [];
* @return mixed
public function run()
$output = null;
exec($this->getCommand().' '.implode(' ', $this->arguments), $output, $result);
$this->setOutput($output);
return $result;
}
* @param string $command
* @return $this
public function setCommand($command)
$this->command = $command;
return $this;
* @return string
public function getCommand()
return $this->command;
* @param mixed $argument
public function addArgument($argument)
$this->arguments[] = $argument;
* @return array
public function getArguments()
return $this->arguments;