CustomUnit.php 388 B

123456789101112131415161718
  1. <?php
  2. namespace App\Yr\Forecast\Tabular\Time;
  3. /**
  4. * Custom unit, only used to operate on units of same kind
  5. *
  6. * Classes should transform this (see {@AbstractUnit}) to
  7. * the correct class again after operation.
  8. */
  9. class CustomUnit extends AbstractUnit {
  10. // Nothing extra here
  11. function thresholdDiff(DiffInterface $e): bool {
  12. return $this->diff($e) == 0;
  13. }
  14. }
  15. ?>