public function Measurement::greaterThan in Physical Fields 8
Gets whether the current measurement is greater than the given one.
Parameters
\Drupal\physical\Measurement $measurement: The measurement.
Return value
bool TRUE if the current measurement is greater than the given measurement, FALSE otherwise.
1 call to Measurement::greaterThan()
- Measurement::greaterThanOrEqual in src/
Measurement.php - Gets whether the current measurement is greater than or equal to the given one.
File
- src/
Measurement.php, line 239
Class
- Measurement
- Provides a base class for measurement value objects.
Namespace
Drupal\physicalCode
public function greaterThan(Measurement $measurement) {
return $this
->compareTo($measurement) == 1;
}