chill-bundles/src/Bundle/ChillDocGeneratorBundle/Context/DocGeneratorContextInterface.php
2021-08-17 11:42:30 +02:00

30 lines
565 B
PHP

<?php
namespace Chill\DocGeneratorBundle\Context;
/**
* Interface for context for for document generation
*/
interface DocGeneratorContextInterface
{
/**
* has form
*/
public function hasForm(): bool;
/**
* Generate the form that display
*/
public function getForm($entity);
/**
* True of false which entity supports
*/
public function supports(string $entityClass): bool;
/**
* Get the data that will be injected to the generated document
*/
public function getData($entity): array;
}