More doc for CalculatorInterface

This commit is contained in:
Julien Fastré 2023-03-28 16:59:54 +02:00
parent 59147b2217
commit 0133e202d2
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -12,11 +12,13 @@ declare(strict_types=1);
namespace Chill\BudgetBundle\Calculator;
use Chill\BudgetBundle\Entity\AbstractElement;
use Chill\BudgetBundle\Entity\Charge;
use Chill\BudgetBundle\Entity\Resource;
interface CalculatorInterface
{
/**
* @param AbstractElement[] $elements
* @param array<Charge|Resource> $elements
*/
public function calculate(array $elements): ?CalculatorResult;