DiffInterface.php 475 B

12345678910111213141516171819
  1. <?php
  2. namespace App\Yr\Forecast\Tabular\Time;
  3. /**
  4. * Defines that an entity can be checked for differences
  5. * agains another entity.
  6. */
  7. interface DiffInterface {
  8. /**
  9. * Check for differences with another DiffInterface.
  10. * The method should check that the objects is the same.
  11. *
  12. * @param DiffInterface $e The object to check agains
  13. */
  14. public function diff(DiffInterface $e): int;
  15. public function thresholdDiff(DiffInterface $e): bool;
  16. }