src/Bpost/Order/Box/AtBpost.php 1 location
|
@@ 49-56 (lines=8) @@
|
| 46 |
|
* @param string $product Possible values are: bpack@bpost |
| 47 |
|
* @throws BpostInvalidValueException |
| 48 |
|
*/ |
| 49 |
|
public function setProduct($product) |
| 50 |
|
{ |
| 51 |
|
if (!in_array($product, self::getPossibleProductValues())) { |
| 52 |
|
throw new BpostInvalidValueException('product', $product, self::getPossibleProductValues()); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
parent::setProduct($product); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
/** |
| 59 |
|
* @return array |
src/Bpost/Order/Box/AtHome.php 1 location
|
@@ 31-38 (lines=8) @@
|
| 28 |
|
* @see getPossibleProductValues |
| 29 |
|
* @throws BpostInvalidValueException |
| 30 |
|
*/ |
| 31 |
|
public function setProduct($product) |
| 32 |
|
{ |
| 33 |
|
if (!in_array($product, self::getPossibleProductValues())) { |
| 34 |
|
throw new BpostInvalidValueException('product', $product, self::getPossibleProductValues()); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
parent::setProduct($product); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
/** |
| 41 |
|
* @return array |