/** * @param string $name * @return string * @throws \OutOfBoundsException */ public function getClassByEventName(string $name) { if (!$this->innerMap->containsKey($name)) { throw new \OutOfBoundsException("Event class not mapped: '{$name}'."); } return $this->innerMap->get($name)->get(); }
/** * Does the map contain a dependency of the specified name? * * @param string $dependencyName * * @return bool */ public function has($dependencyName) { return $this->map->containsKey($dependencyName); }
public function containsKey($key) { return isset($this->serviceIds[$key]) || parent::containsKey($key); }
public function testContainsKey() { $this->assertTrue($this->map->containsKey('foo')); $this->assertFalse($this->map->containsKey('boo')); }