Browse Source

TicketFactory : correctif init section et merchant

packProduct
Guillaume 3 years ago
parent
commit
2698448306
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      Factory/Ticket/TicketFactory.php

+ 3
- 2
Factory/Ticket/TicketFactory.php View File

{ {
$ticket = parent::create(); $ticket = parent::create();


if(!is_null($this->section)) {
if(isset($this->section) && !is_null($this->section)) {
$ticket->setSection($this->section); $ticket->setSection($this->section);
} }


if(!is_null($this->merchant)) {
if(isset($this->merchant) && !is_null($this->merchant)) {
$ticket->setMerchant($this->merchant); $ticket->setMerchant($this->merchant);
} }

return $ticket; return $ticket;
} }
} }

Loading…
Cancel
Save