/** @test */
 public function it_is_serializable()
 {
     $paymentInfo = new PaymentInfo(true, true);
     $this->assertEquals($paymentInfo, PaymentInfo::deserialize($paymentInfo->serialize()));
 }
 public function __construct(RegistrationRequestId $id, PaymentInfo $payment)
 {
     $this->id = (string) $id;
     $this->paysForMembership = $payment->payForMembership();
     $this->paysForFoodAndDrinks = $payment->payForFoodAndDrinks();
 }