public function getRecipient(int $id): Recipient
    {
        if (!\array_key_exists($id, $this->recipients)) {
            throw new \InvalidArgumentException('The recipient does not exist.');
        }

        return $this->recipients[$id];
    }
public function getRecipient(int $id): Recipient
    {
        if (!\array_key_exists($id, $this->recipients)) {
            throw new \InvalidArgumentException('The recipient does not exist.');
        }

        return $this->recipients[$id];
    }
public function getRecipient ( int $ id ) : Recipient { if ( ! \ array_key_exists ( $ id , $ this -> recipients ) ) { throw new \ InvalidArgumentException ( 'The recipient does not exist.' ) ; } return $ this -> recipients [ $ id ] ; }
Returns the recipient object at the given index.
Returns the recipient object at the given index .