code: public function remove($id)
      {
          if (!$this->has($id)) {
              throw new NotFoundException(sprintf('%s not found in %s', $id, __CLASS__));
          }
  
          unset($this->objects[$id]);
      }
docs: Remove an object.
  
  @param string $id Identifier of the entry to look for.
  
  @throws NotFoundException