<?php
namespace App\Amadeus\StructureParser\Types; class FormOfPaymentComponentCC extends FormOfPaymentComponent { public $companyIndicator = null; public $number = null; public $expiryDate = null; public $approvalCode = null; public $invoiceNo = null; public function setCcExpiryDate(?string $ccExpiryDate): self { if ($ccExpiryDate) { $this->expiryDate = \Engine\DateTime::createFromIsoDate($ccExpiryDate)->format("Y-m-t"); } else { $this->expiryDate = null; } return $this; } } 