ReportEntry
in package
Handles operations related to report entries, such as fetching entries by code or report ID and creating new report entries.
Table of Contents
Properties
Methods
- __construct() : mixed
- create() : array<string, mixed>
- Create a report_entry and return the FULL row.
- getByCode() : array<string|int, mixed>
- getByReport() : array<int, array<string, mixed>>
Properties
$codeRangeGenerator
protected
CodeRangeGenerator
$codeRangeGenerator
$db
protected
MySql
$db
Methods
__construct()
public
__construct(MySql $db, CodeRangeGenerator $codeRangeGenerator) : mixed
Parameters
- $db : MySql
- $codeRangeGenerator : CodeRangeGenerator
create()
Create a report_entry and return the FULL row.
public
create(array<string, mixed> $data) : array<string, mixed>
Parameters
- $data : array<string, mixed>
Return values
array<string, mixed>getByCode()
public
getByCode(string $code) : array<string|int, mixed>
Parameters
- $code : string
Return values
array<string|int, mixed>getByReport()
public
getByReport(int $reportId) : array<int, array<string, mixed>>
Parameters
- $reportId : int