mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
DX: mark some functions as pure
This commit is contained in:
parent
75e15c1389
commit
c9cfe4c7e9
@ -32,6 +32,7 @@ interface ChillEntityRenderInterface
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @param T $entity
|
* @param T $entity
|
||||||
|
* @phpstan-pure
|
||||||
*/
|
*/
|
||||||
public function renderBox($entity, array $options): string;
|
public function renderBox($entity, array $options): string;
|
||||||
|
|
||||||
@ -41,11 +42,14 @@ interface ChillEntityRenderInterface
|
|||||||
* Example: returning the name of a person.
|
* Example: returning the name of a person.
|
||||||
*
|
*
|
||||||
* @param T $entity
|
* @param T $entity
|
||||||
|
* @phpstan-pure
|
||||||
*/
|
*/
|
||||||
public function renderString($entity, array $options): string;
|
public function renderString($entity, array $options): string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if the class support this object for the given options.
|
* Return true if the class support this object for the given options.
|
||||||
|
*
|
||||||
|
* @phpstan-pure
|
||||||
*/
|
*/
|
||||||
public function supports(object $entity, array $options): bool;
|
public function supports(object $entity, array $options): bool;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user