public function __construct(ChargeResponse $chargeResponse)
 {
     $this->entity = $chargeResponse;
     $this->entityDTO = new ChargeResponseDTO();
     $this->entityDTO->externalId = $this->entity->getExternalId();
     $this->entityDTO->amount = $this->entity->getAmount();
     $this->entityDTO->last4 = $this->entity->getLast4();
     $this->entityDTO->brand = $this->entity->getBrand();
     $this->entityDTO->currency = $this->entity->getCurrency();
     $this->entityDTO->description = $this->entity->getDescription();
     $this->entityDTO->created = $this->entity->getCreated();
 }
Example #2
0
 public function __construct(ChargeResponse $chargeResponse)
 {
     parent::__construct();
     $this->amount = $chargeResponse->getAmount();
     $this->chargeResponse = $chargeResponse;
 }