Exemplo n.º 1
0
 /**
  * Determine free cancellation
  * @param type $conditions
  * @param type $deadline
  */
 public static function freeCancellation($conditions, $deadline)
 {
     if (!in_array($conditions, ['pay_at_hotel', 'deposit_refundable', 'prepay_refundable'])) {
         return false;
     }
     return CHLibDate::isGreater(CHLibDate::sqlToInt($deadline), CHLibDate::dateToSql(false));
 }