コード例 #1
0
 /**
  * Sets the best adjustment, if the passed adjustment
  * is indeed better.
  * @param Adjustment $candidate for better adjustment
  */
 protected function setBestAdjustment(Adjustment $candidate)
 {
     $this->bestadjustment = $this->bestadjustment ? Adjustment::better_of($this->bestadjustment, $candidate) : $candidate;
 }