Foundation work

This commit is contained in:
Matt Young 2024-06-28 21:34:27 -05:00
parent f067dfbe84
commit 3f88c3dbfa
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,47 @@
<?php
namespace App\Services\Invoice;
use App\Models\School;
use function auditionSetting;
class InvoiceAllStudentsPay implements InvoiceDataService
{
/**
* Create a new class instance.
*/
public function __construct()
{
//
}
public function getLines(School $school)
{
// TODO: Implement getLines() method.
}
public function getLinesTotal(School $school)
{
// TODO: Implement getLinesTotal() method.
}
public function getLateFeesTotal(School $school)
{
// TODO: Implement getLateFeesTotal() method.
}
public function getSchoolFeeTotal(School $school)
{
if (! auditionSetting('school_fee')) {
return 0;
}
return auditionSetting('school_fee');
}
public function getGrandTotal(School $school)
{
// TODO: Implement getGrandTotal() method.
}
}

View File

@ -0,0 +1,18 @@
<?php
namespace App\Services\Invoice;
use App\Models\School;
interface InvoiceDataService
{
public function getLines(School $school);
public function getLinesTotal(School $school);
public function getLateFeesTotal(School $school);
public function getSchoolFeeTotal(School $school);
public function getGrandTotal(School $school);
}