original_string: public function updateCollection(EntityChangeEventInterface $event)
      {
          $collection = $event->getCollection();
          if ($collection->getId()) {
              $collectionMap = $this->getCollectionsMap();
              $collectionMap
                  ->set($collection->getId(), $collection);
          }
      }
code: public function updateCollection(EntityChangeEventInterface $event)
      {
          $collection = $event->getCollection();
          if ($collection->getId()) {
              $collectionMap = $this->getCollectionsMap();
              $collectionMap
                  ->set($collection->getId(), $collection);
          }
      }
code_tokens: public function updateCollection ( EntityChangeEventInterface $ event ) { $ collection = $ event -> getCollection ( ) ; if ( $ collection -> getId ( ) ) { $ collectionMap = $ this -> getCollectionsMap ( ) ; $ collectionMap -> set ( $ collection -> getId ( ) , $ collection ) ; } }
docstring: Handles collection add event and updates the cache
  
  @param EntityChangeEventInterface $event
docstring_tokens: Handles collection add event and updates the cache