public function AdjustmentComparator::accepts in Commerce Core 8.2
File
- modules/
order/ src/ Comparator/ AdjustmentComparator.php, line 17
Class
- AdjustmentComparator
- Provides a PHPUnit comparator for adjustments.
Namespace
Drupal\commerce_order\ComparatorCode
public function accepts($expected, $actual) {
return $expected instanceof Adjustment && $actual instanceof Adjustment;
}