public function PriceModified::greaterThanOrEqual in Price 3.0.x
Same name and namespace in other branches
- 8 src/PriceModified.php \Drupal\price\PriceModified::greaterThanOrEqual()
- 3.x src/PriceModified.php \Drupal\price\PriceModified::greaterThanOrEqual()
Gets whether the current price is greater than or equal to the given price.
Parameters
\Drupal\price\PriceModified $price: The price.
Return value
bool TRUE if the current price is greater than or equal to the given price, FALSE otherwise.
File
- src/
PriceModified.php, line 237
Class
- PriceModified
- Provides a value object for monetary values.
Namespace
Drupal\priceCode
public function greaterThanOrEqual(PriceModified $price) {
return $this
->greaterThan($price) || $this
->equals($price);
}