mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-02 05:47:46 -05:00
30 lines
579 B
PHP
30 lines
579 B
PHP
<?php
|
|
|
|
namespace App\Models\Reports;
|
|
|
|
use CodeIgniter\HTTP\Response;
|
|
use CodeIgniter\Model;
|
|
|
|
/**
|
|
*
|
|
*
|
|
* @property response response
|
|
*
|
|
*/
|
|
abstract class Report extends Model
|
|
{
|
|
function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
// Returns the column names used for the report
|
|
public abstract function getDataColumns(): array;
|
|
|
|
// Returns all the data to be populated into the report
|
|
public abstract function getData(array $inputs): array;
|
|
|
|
// Returns key=>value pairing of summary data for the report
|
|
public abstract function getSummaryData(array $inputs): array;
|
|
}
|