Command/Command.php
public function setAliases($aliases)
    {
        if (!is_array($aliases) && !$aliases instanceof \Traversable) {
            throw new InvalidArgumentException('$aliases must be an array or an instance of \Traversable');
        }

        foreach ($aliases as $alias) {
            $this->validateName($alias);
        }

        $this->aliases = $aliases;

        return $this;
    }
public function setAliases($aliases)
    {
        if (!is_array($aliases) && !$aliases instanceof \Traversable) {
            throw new InvalidArgumentException('$aliases must be an array or an instance of \Traversable');
        }

        foreach ($aliases as $alias) {
            $this->validateName($alias);
        }

        $this->aliases = $aliases;

        return $this;
    }
public function setAliases ( $ aliases ) { if ( ! is_array ( $ aliases ) && ! $ aliases instanceof \ Traversable ) { throw new InvalidArgumentException ( '$aliases must be an array or an instance of \Traversable' ) ; } foreach ( $ aliases as $ alias ) { $ this -> validateName ( $ alias ) ; } $ this -> aliases = $ aliases ; return $ this ; }
Sets the aliases for the command.

@param string[] $aliases An array of aliases for the command

@return $this

@throws InvalidArgumentException When an alias is invalid
Sets the aliases for the command .