src/Instruction/Relation/Relationship.php
protected function hydrator(): Hydrates
    {
        if (isset($this->decisionKey)) {
            return $this->choiceHydrator();
        }
        $mapped = Mapper::forThe($this->class);
        foreach ($this->properties as $property => $instruction) {
            $mapped = $mapped->property($property, $instruction);
        }
        return $mapped->finish();
    }
protected function hydrator(): Hydrates
    {
        if (isset($this->decisionKey)) {
            return $this->choiceHydrator();
        }
        $mapped = Mapper::forThe($this->class);
        foreach ($this->properties as $property => $instruction) {
            $mapped = $mapped->property($property, $instruction);
        }
        return $mapped->finish();
    }
protected function hydrator ( ) : Hydrates { if ( isset ( $ this -> decisionKey ) ) { return $ this -> choiceHydrator ( ) ; } $ mapped = Mapper :: forThe ( $ this -> class ) ; foreach ( $ this -> properties as $ property => $ instruction ) { $ mapped = $ mapped -> property ( $ property , $ instruction ) ; } return $ mapped -> finish ( ) ; }
Produces a mapped hydrator according to the relationship configuration.

@return Hydrates The hydrator for the relationship mapping.
@throws InvalidMapperConfiguration
Produces a mapped hydrator according to the relationship configuration .