public function revokeAll($userId) { if (empty($userId)) { return false; } return $this->db->getCollection($this->assignmentCollection)->remove(['user_id' => (string) $userId]) > 0; }