DX: mark some functions as pure

This commit is contained in:
Julien Fastré 2023-10-17 10:29:18 +02:00
parent 75e15c1389
commit c9cfe4c7e9
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -32,6 +32,7 @@ interface ChillEntityRenderInterface
* ```
*
* @param T $entity
* @phpstan-pure
*/
public function renderBox($entity, array $options): string;
@ -41,11 +42,14 @@ interface ChillEntityRenderInterface
* Example: returning the name of a person.
*
* @param T $entity
* @phpstan-pure
*/
public function renderString($entity, array $options): string;
/**
* Return true if the class support this object for the given options.
*
* @phpstan-pure
*/
public function supports(object $entity, array $options): bool;
}