public function setCommand($command)
    {
        if (!preg_match(self::$_regex['command'], $command)) {
            throw new \InvalidArgumentException(sprintf('Command "%s" is incorect', $command));
        }

        $this->command = $command;

        return $this->generateHash();
    }
public function setCommand($command)
    {
        if (!preg_match(self::$_regex['command'], $command)) {
            throw new \InvalidArgumentException(sprintf('Command "%s" is incorect', $command));
        }

        $this->command = $command;

        return $this->generateHash();
    }
public function setCommand ( $ command ) { if ( ! preg_match ( self :: $ _regex [ 'command' ] , $ command ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Command "%s" is incorect' , $ command ) ) ; } $ this -> command = $ command ; return $ this -> generateHash ( ) ; }
Set the command

@param string

@return Job
Set the command