AwsInspector\Ssh\Command::__construct PHP Метод

__construct() публичный Метод

Command constructor.
public __construct ( Connection $connection, string $command, string $asUser = null )
$connection Connection
$command string
$asUser string
    public function __construct(Connection $connection, $command, $asUser = null)
    {
        $this->connection = $connection;
        if (!is_string($command)) {
            throw new \InvalidArgumentException("Command must be a string.");
        }
        $this->command = $command;
        $this->asUser = $asUser;
    }