src/Instruction/Relation/Relationship.php
private function choiceHydrator(): Hydrates
    {
        assert(isset($this->decisionKey));
        return OneOfTheseHydrators::decideBasedOnThe(
            $this->decisionKey,
            array_map(function (RepresentsChoice $choice): Hydrates {
                return $choice->finish();
            }, $this->choices)
        );
    }
private function choiceHydrator(): Hydrates
    {
        assert(isset($this->decisionKey));
        return OneOfTheseHydrators::decideBasedOnThe(
            $this->decisionKey,
            array_map(function (RepresentsChoice $choice): Hydrates {
                return $choice->finish();
            }, $this->choices)
        );
    }
private function choiceHydrator ( ) : Hydrates { assert ( isset ( $ this -> decisionKey ) ) ; return OneOfTheseHydrators :: decideBasedOnThe ( $ this -> decisionKey , array_map ( function ( RepresentsChoice $ choice ) : Hydrates { return $ choice -> finish ( ) ; } , $ this -> choices ) ) ; }
Produces a multiple-choice hydrator.

@return Hydrates The adapter that selects the hydrator.
@throws InvalidMapperConfiguration
Produces a multiple - choice hydrator .