コード例 #1
0
 /**
  * @When I get PriceExcludingTax
  */
 public function iGetPriceexcludingtax()
 {
     try {
         $this->response = $this->price->getPriceExcludingTax();
     } catch (\Exception $e) {
         $this->exception = $e;
     }
 }
コード例 #2
0
 /**
  * Fired before an object is about to be saved by doctrine
  *
  * @param PricingConfigAware $object The model to inject the price config into
  *
  * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  *
  * @return void
  */
 public function postLoad(Price $object)
 {
     $object->setTaxCalculator($this->getTaxCalculator());
 }