inti project
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
<?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']];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user