You are here

public function PriceComparator::accepts in Price 2.0.x

Same name and namespace in other branches
  1. 2.x src/Comparator/PriceComparator.php \Drupal\price\Comparator\PriceComparator::accepts()

File

src/Comparator/PriceComparator.php, line 17

Class

PriceComparator
Provides a PHPUnit comparator for prices.

Namespace

Drupal\price\Comparator

Code

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