public function Measurement::lessThanOrEqual in Physical Fields 8
Gets whether the current measurement is lesser than or equal to the given measurement.
Parameters
\Drupal\physical\Measurement $measurement: The measurement.
Return value
bool TRUE if the current measurement is lesser than or equal to the given measurement, FALSE otherwise.
File
- src/
Measurement.php, line 281
Class
- Measurement
- Provides a base class for measurement value objects.
Namespace
Drupal\physicalCode
public function lessThanOrEqual(Measurement $measurement) {
return $this
->lessThan($measurement) || $this
->equals($measurement);
}