Ejemplo n.º 1
0
 /**
  * Compares the discount options applicable for the vehicle by their orders
  * @param Reduceri $option1
  * @param Reduceri $option2
  * @return int &lt; 0 if <i>order1</i> is less than
  * <i>order2</i>; &gt; 0 if <i>order1</i>
  * is greater than <i>order2</i>, and 0 if they are
  * equal.
  */
 public function compareDiscountOptions(Discounts $option1, Discounts $option2)
 {
     return strcmp($option1->getOrder(), $option2->getOrder());
 }