public function to(string $valueObjectClass)
    {
        $this->defineRelation(function (IObjectMapper $parentObjectMapper) use ($valueObjectClass) {
            return $this->orm->loadEmbeddedObjectMapper($parentObjectMapper, $valueObjectClass);
        });
    }
public function to(string $valueObjectClass)
    {
        $this->defineRelation(function (IObjectMapper $parentObjectMapper) use ($valueObjectClass) {
            return $this->orm->loadEmbeddedObjectMapper($parentObjectMapper, $valueObjectClass);
        });
    }
public function to ( string $ valueObjectClass ) { $ this -> defineRelation ( function ( IObjectMapper $ parentObjectMapper ) use ( $ valueObjectClass ) { return $ this -> orm -> loadEmbeddedObjectMapper ( $ parentObjectMapper , $ valueObjectClass ) ; } ) ; }
Sets the type of value object to use to embed
in the parent class mapping.

@param string $valueObjectClass

@return void
Sets the type of value object to use to embed in the parent class mapping .