public function entity(string $entityClass) : EntityMapperDefiner
    {
        return new EntityMapperDefiner($this->iocContainer, function (callable $entityMapperFactory) use ($entityClass) {
            $this->entityMapperFactories[] = $entityMapperFactory;
        });
    }
public function entity(string $entityClass) : EntityMapperDefiner
    {
        return new EntityMapperDefiner($this->iocContainer, function (callable $entityMapperFactory) use ($entityClass) {
            $this->entityMapperFactories[] = $entityMapperFactory;
        });
    }
public function entity ( string $ entityClass ) : EntityMapperDefiner { return new EntityMapperDefiner ( $ this -> iocContainer , function ( callable $ entityMapperFactory ) use ( $ entityClass ) { $ this -> entityMapperFactories [ ] = $ entityMapperFactory ; } ) ; }
Registers a mapper for the supplied entity class.

@param string $entityClass

@return EntityMapperDefiner
Registers a mapper for the supplied entity class .