| Conditions | 4 |
| Paths | 8 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | public function __construct($seatReq) |
||
| 51 | { |
||
| 52 | if (!empty($seatReq->type)) { |
||
| 53 | $this->seat = new Seat($seatReq->type); |
||
| 54 | } |
||
| 55 | |||
| 56 | if (!empty($seatReq->specialType)) { |
||
| 57 | $this->special[] = new Special(null, $seatReq->specialType); |
||
| 58 | } |
||
| 59 | |||
| 60 | if (!empty($seatReq->seatNumber)) { |
||
| 61 | $this->special[] = new Special($seatReq->seatNumber); |
||
| 62 | } |
||
| 63 | } |
||
| 64 | } |
||
| 65 |