src/Incoming/Processor.php
protected function getHydratorForModel($model): Hydrator
    {
        if (null === $this->hydrator_factory) {
            throw UnresolvableHydratorException::forModel($model);
        }

        return $this->hydrator_factory->buildForModel($model);
    }
protected function getHydratorForModel($model): Hydrator
    {
        if (null === $this->hydrator_factory) {
            throw UnresolvableHydratorException::forModel($model);
        }

        return $this->hydrator_factory->buildForModel($model);
    }
protected function getHydratorForModel ( $ model ) : Hydrator { if ( null === $ this -> hydrator_factory ) { throw UnresolvableHydratorException :: forModel ( $ model ) ; } return $ this -> hydrator_factory -> buildForModel ( $ model ) ; }
Get a Hydrator for a given model.

@param mixed $model The model to get a hydrator for.
@throws UnresolvableHydratorException If a hydrator can't be resolved for
the given model.
@return Hydrator The resulting hydrator.
Get a Hydrator for a given model .