arch-8.x-1.x-dev/modules/price/src/Price/ModifiedPrice.php
modules/price/src/Price/ModifiedPrice.php
<?php
namespace Drupal\arch_price\Price;
/**
* Modified price.
*
* @package Drupal\arch_price\Price
*/
class ModifiedPrice extends Price implements ModifiedPriceInterface {
/**
* Original price.
*
* @var \Drupal\arch_price\Price\PriceInterface
*/
protected $originalPrice;
/**
* {@inheritdoc}
*/
public function setOriginalPrice(PriceInterface $original_price) {
$this->originalPrice = $original_price;
return $this;
}
/**
* {@inheritdoc}
*/
public function getOriginalPrice() {
return $this->originalPrice;
}
}
