public function addMapping(MappingInterface $mapping) { $this->mappings->set($mapping->getUrlPattern(), $mapping); }