public function parseToken(string $tokenString)
    {
        // try to parse a token string.
        try {
            return $this->parser()->parse($tokenString);
        } catch (\Exception $e) {
            // if it was not possible to, return null.
            return null;
        }
    }
public function parseToken(string $tokenString)
    {
        // try to parse a token string.
        try {
            return $this->parser()->parse($tokenString);
        } catch (\Exception $e) {
            // if it was not possible to, return null.
            return null;
        }
    }
public function parseToken ( string $ tokenString ) { // try to parse a token string. try { return $ this -> parser ( ) -> parse ( $ tokenString ) ; } catch ( \ Exception $ e ) { // if it was not possible to, return null. return null ; } }
Method for parsing a token from a string.

@param string $tokenString

@return Token
Method for parsing a token from a string .