public function PriceComparator::accepts in Price 2.x
Same name and namespace in other branches
- 2.0.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\ComparatorCode
public function accepts($expected, $actual) {
return $expected instanceof Price && $actual instanceof Price;
}