src/Event/EmittersMap.php
public function set($key, $value)
    {
        if (! $value instanceof EmitterInterface) {
            throw new InvalidArgumentException(
                "Only EmitterInterface object can be putted in a ".
                "EmittersMap."
            );
        }
        return parent::set($key, $value);
    }
public function set($key, $value)
    {
        if (! $value instanceof EmitterInterface) {
            throw new InvalidArgumentException(
                "Only EmitterInterface object can be putted in a ".
                "EmittersMap."
            );
        }
        return parent::set($key, $value);
    }
public function set ( $ key , $ value ) { if ( ! $ value instanceof EmitterInterface ) { throw new InvalidArgumentException ( "Only EmitterInterface object can be putted in a " . "EmittersMap." ) ; } return parent :: set ( $ key , $ value ) ; }
Puts a new emitter in the map.

@param mixed $key
@param EmitterInterface $value

@return $this|self|MapInterface
Puts a new emitter in the map .