src/EntityFactory/Resolver.php
private function register(EntityFactoryInterface $factory): self
    {
        $this->mapping = $this->mapping->put(
            get_class($factory),
            $factory
        );

        return $this;
    }
private function register(EntityFactoryInterface $factory): self
    {
        $this->mapping = $this->mapping->put(
            get_class($factory),
            $factory
        );

        return $this;
    }
private function register ( EntityFactoryInterface $ factory ) : self { $ this -> mapping = $ this -> mapping -> put ( get_class ( $ factory ) , $ factory ) ; return $ this ; }
Register the given entity factory instance
Register the given entity factory instance