Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Base.php
Go to the documentation of this file.
1 <?php
8 
11 use Magento\Framework\Pricing\Price\Collection as PriceCollection;
14 
22 class Base implements PriceInfoInterface
23 {
27  protected $priceCollection;
28 
33 
38  public function __construct(
39  PriceCollection $prices,
41  ) {
42  $this->adjustmentCollection = $adjustmentCollection;
43  $this->priceCollection = $prices;
44  }
45 
51  public function getPrices()
52  {
54  }
55 
62  public function getPrice($priceCode)
63  {
64  return $this->priceCollection->get($priceCode);
65  }
66 
72  public function getAdjustments()
73  {
74  return $this->adjustmentCollection->getItems();
75  }
76 
84  public function getAdjustment($adjustmentCode)
85  {
86  return $this->adjustmentCollection->getItemByCode($adjustmentCode);
87  }
88 }
__construct(PriceCollection $prices, Collection $adjustmentCollection)
Definition: Base.php:38