public function getPayload($token)
    {
        try {
            $jws = SimpleJWS::load($token);

            return $jws->getPayload();
        } catch (\InvalidArgumentException $ex) {
            throw new ProgrammerException('Unable to read jws token.', ProgrammerException::JWS_INVALID_TOKEN_FORMAT);
        }
    }
public function getPayload($token)
    {
        try {
            $jws = SimpleJWS::load($token);

            return $jws->getPayload();
        } catch (\InvalidArgumentException $ex) {
            throw new ProgrammerException('Unable to read jws token.', ProgrammerException::JWS_INVALID_TOKEN_FORMAT);
        }
    }
public function getPayload ( $ token ) { try { $ jws = SimpleJWS :: load ( $ token ) ; return $ jws -> getPayload ( ) ; } catch ( \ InvalidArgumentException $ ex ) { throw new ProgrammerException ( 'Unable to read jws token.' , ProgrammerException :: JWS_INVALID_TOKEN_FORMAT ) ; } }
Gets the payload out of the token.

@param $token
@return array
@throws ProgrammerException
Gets the payload out of the token .