adjustmentCollection = $adjustmentCollection; $this->priceCollection = $prices; } /** * Returns array of prices * * @return PriceCollection */ public function getPrices() { return $this->priceCollection; } /** * Returns price by code * * @param string $priceCode * @return PriceInterface */ public function getPrice($priceCode) { return $this->priceCollection->get($priceCode); } /** * Get all registered adjustments * * @return AdjustmentInterface[] */ public function getAdjustments() { return $this->adjustmentCollection->getItems(); } /** * Get adjustment by code * * @param string $adjustmentCode * @throws \InvalidArgumentException * @return AdjustmentInterface */ public function getAdjustment($adjustmentCode) { return $this->adjustmentCollection->getItemByCode($adjustmentCode); } }