Documentation

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

$mySql  : MySql

Methods

__construct()  : mixed
add()  : int|null
deleteFact()  : void
getByAccidentId()  : array<string|int, mixed>
update()  : void

Properties

Methods

add()

public add(type $data) : int|null
Parameters
$data : type
Tags
throws
Throwable
Return values
int|null

deleteFact()

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
Tags
throws
Throwable

        
On this page

Search results