/** * Removes the given entry in the Index * * @param DocumentInterface|array $document * @return $this */ public function deleteEntry($document) { $key = DocumentUtility::getIdentifierForDocument($document); if (!isset($this->map[$key])) { throw new InvalidEntryException(sprintf('Entry \'%s\' not found to delete', $key), 1415047176); } unset($this->map[$key]); return $this; }