<?php
/**
* Action Interface
*
* @author Vincent van Waasbergen <v.vanwaasbergen@visualmedia.nl>
*/
namespace VisualMedia\LisaBundle\Component\Interfaces;
use VisualMedia\LisaBundle\Component\Interfaces\DataTableInterface;
use VisualMedia\LisaBundle\Component\Interfaces\EntityInterface;
/**
* Action Interface
*/
interface ActionInterface
{
/**
* Initialize
*
* @param string $title
* @param string $path
* @param string $target
*/
public function initialize(DataTableInterface $datatable, $title, $path = '', $target = null) : ActionInterface;
/**
* Get Title
*
* @param EntityInterface $row
*
* @return string
*/
public function getTitle(EntityInterface $row = null): ?string;
/**
* Get Path
*
* @param EntityInterface $row
*
* @return string
*/
public function getPath(EntityInterface $row = null): ?string;
/**
* Get actionTitle
*
* @param EntityInterface $row
*
* @return string
*/
public function getActionTitle(): ?string;
}