public function adjustPrice(Adjustment $a) { $this->currentprice -= $a->getValue(); $this->setBestAdjustment($a); $this->adjustments[] = $a; }
public function compareTo(Adjustment $i) { return $this->getValue() - $i->getValue(); }