final public function loadMapperFor(IObjectMapper $sourceObjectMapper) : ReadModelMapper
    {
        $map = new ReadMapperDefinition($sourceObjectMapper->getDefinition()->getOrm());
        $map->from($sourceObjectMapper);

        $this->define($map);

        return new ReadModelMapper($map);
    }
final public function loadMapperFor(IObjectMapper $sourceObjectMapper) : ReadModelMapper
    {
        $map = new ReadMapperDefinition($sourceObjectMapper->getDefinition()->getOrm());
        $map->from($sourceObjectMapper);

        $this->define($map);

        return new ReadModelMapper($map);
    }
final public function loadMapperFor ( IObjectMapper $ sourceObjectMapper ) : ReadModelMapper { $ map = new ReadMapperDefinition ( $ sourceObjectMapper -> getDefinition ( ) -> getOrm ( ) ) ; $ map -> from ( $ sourceObjectMapper ) ; $ this -> define ( $ map ) ; return new ReadModelMapper ( $ map ) ; }
Constructs a read model mapper for the supplied entity mapper.

@param IObjectMapper $sourceObjectMapper

@return ReadModelMapper
Constructs a read model mapper for the supplied entity mapper .