mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
30 lines
565 B
PHP
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;
|
|
}
|