mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 17:15:02 +00:00
[person] Add a PersonRenderInterface
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?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\PersonBundle\Templating\Entity;
|
||||
|
||||
use Chill\MainBundle\Templating\Entity\ChillEntityRenderInterface;
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
|
||||
/**
|
||||
* Render a Person.
|
||||
*/
|
||||
interface PersonRenderInterface extends ChillEntityRenderInterface
|
||||
{
|
||||
/**
|
||||
* @param Person $person
|
||||
*/
|
||||
public function renderBox($person, array $options): string;
|
||||
|
||||
/**
|
||||
* @param Person $person
|
||||
*/
|
||||
public function renderString($person, array $options): string;
|
||||
|
||||
public function supports($entity, array $options): bool;
|
||||
}
|
Reference in New Issue
Block a user