17 lines
519 B
PHP
17 lines
519 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Domain\IslamicSundaySchool\Policies;
|
|
|
|
use App\Domain\SchoolCore\Context\SchoolContext;
|
|
use App\Domain\SchoolCore\Contracts\PaymentAllocationPolicyContract;
|
|
|
|
final class IslamicSundaySchoolPaymentAllocationPolicy implements PaymentAllocationPolicyContract
|
|
{
|
|
public function allocate(SchoolContext $context, int $invoiceId, float $amount): array
|
|
{
|
|
return [['invoice_id' => $invoiceId, 'amount' => $amount, 'allocation_rule' => 'extension_default']];
|
|
}
|
|
}
|