IdentifierInterface.php 466 B

123456789101112131415161718192021222324252627
  1. <?php declare(strict_types=1);
  2. namespace Grav\Framework\Contracts\Object;
  3. use JsonSerializable;
  4. /**
  5. * Interface IdentifierInterface
  6. */
  7. interface IdentifierInterface extends JsonSerializable
  8. {
  9. /**
  10. * Get identifier's ID.
  11. *
  12. * @return string
  13. * @phpstan-pure
  14. */
  15. public function getId(): string;
  16. /**
  17. * Get identifier's type.
  18. *
  19. * @return string
  20. * @phpstan-pure
  21. */
  22. public function getType(): string;
  23. }