public function hasAlias($alias)
    {
        if ($this->name == $alias) {
            return true;
        }

        return in_array($alias, $this->aliases);
    }
public function hasAlias($alias)
    {
        if ($this->name == $alias) {
            return true;
        }

        return in_array($alias, $this->aliases);
    }
public function hasAlias ( $ alias ) { if ( $ this -> name == $ alias ) { return true ; } return in_array ( $ alias , $ this -> aliases ) ; }
Has alias.

@param   string $alias The option alias to find.

@return  boolean

@since  2.0
Has alias .