CommentInterface.php 553 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App\Interfaces;
  3. use App\User;
  4. use Carbon\CarbonImmutable;
  5. interface CommentInterface {
  6. /**
  7. * @return User
  8. */
  9. public function getUser(): User;
  10. /**
  11. * @return bool
  12. */
  13. public function isInternal(): bool;
  14. /**
  15. * @return CarbonImmutable
  16. */
  17. public function getDateTimeCreated(): CarbonImmutable;
  18. /**
  19. * @return AttachmentInterface[]
  20. */
  21. public function getAttachments(): array;
  22. /**
  23. * @return string
  24. */
  25. public function getHtml(): string;
  26. /**
  27. * @return void
  28. */
  29. public function renderEditIcon(): void;
  30. }