protected function revokeFailedAssignment(Assignment $assignment)
    {
        if ($assignment->failedAt === null) {
            return false;
        }
        if (strtotime($assignment->failedAt) < strtotime(gmdate('Y-m-d H:i:s'))) {
            $role = $this->getRole($assignment->roleName);
            if (!$role) {
                return true;
            }
            $this->revoke($role->name, $assignment->userGuid);
            return true;
        }
        return false;
    }
protected function revokeFailedAssignment(Assignment $assignment)
    {
        if ($assignment->failedAt === null) {
            return false;
        }
        if (strtotime($assignment->failedAt) < strtotime(gmdate('Y-m-d H:i:s'))) {
            $role = $this->getRole($assignment->roleName);
            if (!$role) {
                return true;
            }
            $this->revoke($role->name, $assignment->userGuid);
            return true;
        }
        return false;
    }
protected function revokeFailedAssignment ( Assignment $ assignment ) { if ( $ assignment -> failedAt === null ) { return false ; } if ( strtotime ( $ assignment -> failedAt ) < strtotime ( gmdate ( 'Y-m-d H:i:s' ) ) ) { $ role = $ this -> getRole ( $ assignment -> roleName ) ; if ( ! $ role ) { return true ; } $ this -> revoke ( $ role -> name , $ assignment -> userGuid ) ; return true ; } return false ; }
Revoke failed assignment.
If assignment's `failedAt` attribute is `null`, false will be given directly.
@param Assignment $assignment
@return boolean
Revoke failed assignment . If assignment s failedAt attribute is null false will be given directly .