| Conditions | 2 |
| Paths | 1 |
| Total Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function __construct(string $message, ShoppingCart $shoppingCart, AbstractCartPosition $position) |
||
| 23 | { |
||
| 24 | parent::__construct($message ?: 'Can not add this item to cart because of different currency'); |
||
| 25 | $this->position = $position; |
||
| 26 | $this->shoppingCart = $shoppingCart; |
||
| 27 | } |
||
| 28 | |||
| 37 |