DiffInterface.php 416 B

123456789101112131415161718
  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. }