for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Nexus\DockerClient\Business\Model;
use Nexus\Shell\Business\ShellFacade;
class Docker implements DockerInterface
{
/**
* @var \Nexus\Shell\Business\ShellFacade
*/
private $shellFacade;
* @var string
private $command;
* Docker constructor.
*
* @param \Nexus\Shell\Business\ShellFacade $shellFacade
* @param string $command
public function __construct(ShellFacade $shellFacade, string $command)
$this->shellFacade = $shellFacade;
$this->command = $command;
}
* @return string
public function execute(string $command): string
return $this->shellFacade->runCommand($this->command . ' ' . $command);