getValue() < self::NORMAL_PRESSURE; } /** * Check if the pressure is above normal pressure * * @return bool */ public function isHighPressure(): bool { return $this->getValue() > self::NORMAL_PRESSURE; } /** * {@inheritDoc} */ public function diff(DiffInterface $d): int { if ($diff = parent::diff($d)) return $this->isLowPressure() == $d->isLowPressure() ? 0 : 1; return 0; } }