ViolationsManager
Table of Contents
-
COL_CREATE_DATE
= 'create_dt'
-
COL_EMPLOYEE
= 'employee'
-
COL_EXPIRATION_DATE
= 'expiration_dt'
-
COL_EXTERNAL_ID
= 'external_id'
-
COL_GROUND_FOR_VIOLATION
= 'ground_for_violation'
-
COL_INSTRUCTION
= 'instruction'
-
COL_UUID
= 'uuid'
-
EVENT_ADD_VIOLATION
= 'violations_added_event'
-
SERVICE_NAME
= 'violations.manager'
-
TABLE_NAME
= 'violations'
-
$database
: Explorer
-
$hooksManager
: ModelHooks
-
__construct()
: mixed
-
add()
: ActiveRow|Selection
-
delete()
: void
-
find()
: Selection
-
get()
: ActiveRow
-
update()
: ActiveRow
COL_CREATE_DATE
public
string
COL_CREATE_DATE
= 'create_dt'
COL_EMPLOYEE
public
string
COL_EMPLOYEE
= 'employee'
COL_EXPIRATION_DATE
public
string
COL_EXPIRATION_DATE
= 'expiration_dt'
COL_EXTERNAL_ID
public
string
COL_EXTERNAL_ID
= 'external_id'
COL_GROUND_FOR_VIOLATION
public
string
COL_GROUND_FOR_VIOLATION
= 'ground_for_violation'
COL_INSTRUCTION
public
string
COL_INSTRUCTION
= 'instruction'
COL_UUID
public
string
COL_UUID
= 'uuid'
EVENT_ADD_VIOLATION
public
mixed
EVENT_ADD_VIOLATION
= 'violations_added_event'
SERVICE_NAME
public
mixed
SERVICE_NAME
= 'violations.manager'
TABLE_NAME
public
string
TABLE_NAME
= 'violations'
$database
private
Explorer
$database
$hooksManager
private
ModelHooks
$hooksManager
__construct()
public
__construct(Explorer $database, ModelHooks $modelHooks) : mixed
Parameters
-
$database
: Explorer
-
-
$modelHooks
: ModelHooks
-
Return values
mixed
—
add()
public
add(iteratable<string|int, mixed> $value) : ActiveRow|Selection
Parameters
-
$value
: iteratable<string|int, mixed>
-
-
throws
-
Exception
-
throws
-
UniqueConstraintViolationException
Return values
ActiveRow|Selection
—
delete()
public
delete(string $uuid) : void
Parameters
-
$uuid
: string
-
-
throws
-
ViolationNotFoundException
-
throws
-
InvalidUuidException
Return values
void
—
find()
public
find() : Selection
Return values
Selection
—
get()
public
get(string $uuid) : ActiveRow
Parameters
-
$uuid
: string
-
-
throws
-
InvalidUuidException
-
throws
-
ViolationNotFoundException
Return values
ActiveRow
—
update()
public
update(string $uuid, iteratable<string|int, mixed> $value) : ActiveRow
Parameters
-
$uuid
: string
-
-
$value
: iteratable<string|int, mixed>
-
-
throws
-
ViolationNotFoundException
-
throws
-
InvalidUuidException
Return values
ActiveRow
—