You are here

public function Measurement::greaterThanOrEqual in Physical Fields 8

Gets whether the current measurement is greater than or equal to the given one.

Parameters

\Drupal\physical\Measurement $measurement: The measurement.

Return value

bool TRUE if the current measurement is greater than or equal to the given one, FALSE otherwise.

File

src/Measurement.php, line 253

Class

Measurement
Provides a base class for measurement value objects.

Namespace

Drupal\physical

Code

public function greaterThanOrEqual(Measurement $measurement) {
  return $this
    ->greaterThan($measurement) || $this
    ->equals($measurement);
}