public function create(UserInterface $user, $resourceClass, $resourceId, array $actions) : UserPermissionInterface
    {
        return new UserPermission($user, $resourceClass, $resourceId, $actions);
    }
public function create(UserInterface $user, $resourceClass, $resourceId, array $actions) : UserPermissionInterface
    {
        return new UserPermission($user, $resourceClass, $resourceId, $actions);
    }
public function create ( UserInterface $ user , $ resourceClass , $ resourceId , array $ actions ) : UserPermissionInterface { return new UserPermission ( $ user , $ resourceClass , $ resourceId , $ actions ) ; }
Create a user permission, not persisted, and return it.

@param UserInterface $user
@param               $resourceClass
@param               $resourceId
@param array         $actions

@return UserPermissionInterface
Create a user permission not persisted and return it .