mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-17 07:44:24 +00:00
39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Chill\DocGeneratorBundle\Context;
|
|
|
|
use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate;
|
|
use Chill\DocStoreBundle\Entity\StoredObject;
|
|
|
|
/**
|
|
* Interface for context for document generation.
|
|
*/
|
|
interface DocGeneratorContextInterface
|
|
{
|
|
/**
|
|
* Get the data that will be injected to the generated document.
|
|
*
|
|
* @param mixed $entity
|
|
*/
|
|
public function getData(DocGeneratorTemplate $template, $entity, array $contextGenerationData = []): array;
|
|
|
|
public function getDescription(): string;
|
|
|
|
public function getEntityClass(): string;
|
|
|
|
public static function getKey(): string;
|
|
|
|
public function getName(): string;
|
|
|
|
public function storeGenerated(DocGeneratorTemplate $template, StoredObject $storedObject, object $entity, array $contextGenerationData): void;
|
|
}
|