for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nexus\Shell\Business\Model;
use Nexus\Shell\Business\Model\Executor\ExecutorInterface;
class ShellProvider implements ShellProviderInterface
{
/**
* @var \Nexus\Shell\Business\Model\Executor\ExecutorInterface
*/
private $executor;
* ShellProvider constructor.
*
* @param \Nexus\Shell\Business\Model\Executor\ExecutorInterface $executor
public function __construct(ExecutorInterface $executor)
$this->executor = $executor;
}
* @param string $command
* @return string
public function execute(string $command) : string
return $this->executor->execute($command);