You are here

public function PriceComparator::accepts in Commerce Core 8.2

File

modules/price/src/Comparator/PriceComparator.php, line 17

Class

PriceComparator
Provides a PHPUnit comparator for prices.

Namespace

Drupal\commerce_price\Comparator

Code

public function accepts($expected, $actual) {
  return $expected instanceof Price && $actual instanceof Price;
}