src/Mapper/MappersMap.php
public function set($key, $value)
    {
        if (! $value instanceof EntityMapperInterface) {
            throw new InvalidArgumentException(
                'Trying to add a non EntityMapper to MappersMap.'
            );
        }
        return parent::set($key, $value);
    }
public function set($key, $value)
    {
        if (! $value instanceof EntityMapperInterface) {
            throw new InvalidArgumentException(
                'Trying to add a non EntityMapper to MappersMap.'
            );
        }
        return parent::set($key, $value);
    }
public function set ( $ key , $ value ) { if ( ! $ value instanceof EntityMapperInterface ) { throw new InvalidArgumentException ( 'Trying to add a non EntityMapper to MappersMap.' ) ; } return parent :: set ( $ key , $ value ) ; }
Puts a new Entity mapper in the map.

@param string|int|HashableInterface $key
@param mixed $value

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