/**
  * {@inheritDoc}
  */
 public function getChargeValueModifier()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getChargeValueModifier', array());
     return parent::getChargeValueModifier();
 }
Esempio n. 2
0
 /**
  * Get charge value modifier
  *
  * @return float
  */
 public function getChargeValueModifier()
 {
     if ($this->isXpc(true)) {
         list($authorized, $paid, $voided, $refunded) = $this->getXpcValues();
         $positive = max($authorized, $paid);
         $negative = $voided + $refunded;
         $value = $positive - $negative;
     } else {
         $value = parent::getChargeValueModifier();
     }
     return $value;
 }