protected function checkToken($token)
    {
        if (!array_key_exists($token, $this->tokens)) {
            throw new TokenNotFoundException($token, get_called_class());
        }

        return $this->tokens[$token];
    }
protected function checkToken($token)
    {
        if (!array_key_exists($token, $this->tokens)) {
            throw new TokenNotFoundException($token, get_called_class());
        }

        return $this->tokens[$token];
    }
protected function checkToken ( $ token ) { if ( ! array_key_exists ( $ token , $ this -> tokens ) ) { throw new TokenNotFoundException ( $ token , get_called_class ( ) ) ; } return $ this -> tokens [ $ token ] ; }
Checks if a token is set, returning it if it is.

@param  string $token
@return mixed
@throws TokenNotFoundException
Checks if a token is set returning it if it is .