classes/resolvers/BuddiesPlugin.php
/**
     * @param Model $model
     * @return JWTSubject
     * @throws PluginModelResolverException
     */
@param Model $model
@return JWTSubject
@throws PluginModelResolverException
@param Model $model @return JWTSubject @throws PluginModelResolverException
public function resolve($model): JWTSubject
    {
        if (!$model instanceof BuddiesUserModel) {
            throw new PluginModelResolverException;
        }
        $proxyObject = $this->proxyObject();
        return (new $proxyObject)->setRawAttributes($model->getAttributes());
    }
public function resolve ( $ model ) : JWTSubject { if ( ! $ model instanceof BuddiesUserModel ) { throw new PluginModelResolverException ; } $ proxyObject = $ this -> proxyObject ( ) ; return ( new $ proxyObject ) -> setRawAttributes ( $ model -> getAttributes ( ) ) ; }
@param Model $model
 @return JWTSubject
 @throws PluginModelResolverException
@param Model $model @return JWTSubject @throws PluginModelResolverException