src/ShellCommand.php
private function setShellCommand($command)
    {
        if (! isset($command)) {
            throw new InvalidArgumentException('Must define a command.');
        }

        if (isset($this->shellCommand) && $this->shellCommand !== $command) {
            throw new LogicException('Cannot redefine command once set!');
        }

        $this->shellCommand = $command;

        return $this;
    }
private function setShellCommand($command)
    {
        if (! isset($command)) {
            throw new InvalidArgumentException('Must define a command.');
        }

        if (isset($this->shellCommand) && $this->shellCommand !== $command) {
            throw new LogicException('Cannot redefine command once set!');
        }

        $this->shellCommand = $command;

        return $this;
    }
private function setShellCommand ( $ command ) { if ( ! isset ( $ command ) ) { throw new InvalidArgumentException ( 'Must define a command.' ) ; } if ( isset ( $ this -> shellCommand ) && $ this -> shellCommand !== $ command ) { throw new LogicException ( 'Cannot redefine command once set!' ) ; } $ this -> shellCommand = $ command ; return $ this ; }
Set the command to execute.

The command can only be set once.

@param $command

@return $this
Set the command to execute .