public function resolveFor(UserIdInterface $donorId)
    {
        $donor = $this->donorRepository->findOneById($donorId);

        $donee = $this->getResolverHandlerChain()->resolve($donor);

        $this->eventContext->dispatch(FoundDonee::fromPair($donor, $donee));

        return $donee;
    }
public function resolveFor(UserIdInterface $donorId)
    {
        $donor = $this->donorRepository->findOneById($donorId);

        $donee = $this->getResolverHandlerChain()->resolve($donor);

        $this->eventContext->dispatch(FoundDonee::fromPair($donor, $donee));

        return $donee;
    }
public function resolveFor ( UserIdInterface $ donorId ) { $ donor = $ this -> donorRepository -> findOneById ( $ donorId ) ; $ donee = $ this -> getResolverHandlerChain ( ) -> resolve ( $ donor ) ; $ this -> eventContext -> dispatch ( FoundDonee :: fromPair ( $ donor , $ donee ) ) ; return $ donee ; }
Resolves a donee for the incoming donor user id

@param UserIdInterface $donorId User id of the donor

@return DoneeInterface A donee
Resolves a donee for the incoming donor user id