FactEsgSafety
in package
Class FactEsgSafety
Handles operations related to the fact_esg_safety table, including adding, updating,
deleting, and retrieving safety fact records.
Table of Contents
Properties
Methods
- __construct() : mixed
- add() : int|null
- deleteFact() : void
- getByAccidentId() : array<string|int, mixed>
- update() : void
Properties
$mySql
protected
MySql
$mySql
Methods
__construct()
public
__construct(MySql $mySql) : mixed
Parameters
- $mySql : MySql
add()
public
add(type $data) : int|null
Parameters
- $data : type
Tags
Return values
int|nulldeleteFact()
public
deleteFact(int $factEsgSafetyId) : void
Parameters
- $factEsgSafetyId : int
getByAccidentId()
public
getByAccidentId(int $accidentId) : array<string|int, mixed>
Parameters
- $accidentId : int
Return values
array<string|int, mixed>update()
public
update(type $data) : void
Parameters
- $data : type