lib/composer/LisaBundle/src/VisualMedia/LisaBundle/Component/Interfaces/ActionInterface.php line 42

Open in your IDE?
  1. <?php
  2. /**
  3. * Action Interface
  4. *
  5. * @author Vincent van Waasbergen <v.vanwaasbergen@visualmedia.nl>
  6. */
  7. namespace VisualMedia\LisaBundle\Component\Interfaces;
  8. use VisualMedia\LisaBundle\Component\Interfaces\DataTableInterface;
  9. use VisualMedia\LisaBundle\Component\Interfaces\EntityInterface;
  10. /**
  11. * Action Interface
  12. */
  13. interface ActionInterface
  14. {
  15. /**
  16. * Initialize
  17. *
  18. * @param string $title
  19. * @param string $path
  20. * @param string $target
  21. */
  22. public function initialize(DataTableInterface $datatable, $title, $path = '', $target = null) : ActionInterface;
  23. /**
  24. * Get Title
  25. *
  26. * @param EntityInterface $row
  27. *
  28. * @return string
  29. */
  30. public function getTitle(EntityInterface $row = null): ?string;
  31. /**
  32. * Get Path
  33. *
  34. * @param EntityInterface $row
  35. *
  36. * @return string
  37. */
  38. public function getPath(EntityInterface $row = null): ?string;
  39. /**
  40. * Get actionTitle
  41. *
  42. * @param EntityInterface $row
  43. *
  44. * @return string
  45. */
  46. public function getActionTitle(): ?string;
  47. }