command/AbstractBillCommandHandler.php 1 location
|
@@ 46-55 (lines=10) @@
|
| 43 |
|
/** |
| 44 |
|
* @return Product |
| 45 |
|
*/ |
| 46 |
|
protected function getProduct() |
| 47 |
|
{ |
| 48 |
|
$flightProduct = new Product($this->db); |
| 49 |
|
|
| 50 |
|
if ($flightProduct->fetch($this->conf->BBC_FLIGHT_TYPE_CUSTOMER) <= 0) { |
| 51 |
|
throw new \InvalidArgumentException('Default product not configured'); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
return $flightProduct; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
/** |
| 58 |
|
* @param int $receiverId |
command/CreateFlightBillCommandHandler.php 1 location
|
@@ 93-102 (lines=10) @@
|
| 90 |
|
/** |
| 91 |
|
* @return Product |
| 92 |
|
*/ |
| 93 |
|
private function getProduct() |
| 94 |
|
{ |
| 95 |
|
$flightProduct = new Product($this->db); |
| 96 |
|
|
| 97 |
|
if ($flightProduct->fetch($this->conf->BBC_FLIGHT_TYPE_CUSTOMER) <= 0) { |
| 98 |
|
throw new \InvalidArgumentException('Default product not configured'); |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
return $flightProduct; |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
/** |
| 105 |
|
* @return Fournisseur |