mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-06-01 04:06:12 -04:00
- Create BaseModel with getters for $table, $primaryKey, $allowedFields - All models now extend BaseModel instead of CodeIgniter\Model - Add type declarations to protected properties Closes #4489
21 lines
401 B
PHP
21 lines
401 B
PHP
<?php
|
|
|
|
namespace App\Models\Reports;
|
|
|
|
use CodeIgniter\HTTP\Response;
|
|
use App\Models\BaseModel;
|
|
|
|
abstract class Report extends BaseModel
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
public abstract function getDataColumns(): array;
|
|
|
|
public abstract function getData(array $inputs): array;
|
|
|
|
public abstract function getSummaryData(array $inputs): array;
|
|
}
|