public function match($string)
    {
        return $this->string === $string || in_array($string, $this->aliases, true);
    }
public function match($string)
    {
        return $this->string === $string || in_array($string, $this->aliases, true);
    }
public function match ( $ string ) { return $ this -> string === $ string || in_array ( $ string , $ this -> aliases , true ) ; }
Returns whether a string matches the command name or one of its aliases.

@param string $string The string to test.

@return bool Returns `true` if the given string matches the command name
or one of its aliases and `false` otherwise.
Returns whether a string matches the command name or one of its aliases .