RecommendationsStatesLog
extends BaseEntity
in package
RecommendationsStatesLog Entity - Audit trail for recommendation state transitions.
Logs every state change in the recommendation workflow for accountability and analytics. Entries are append-only to preserve historical accuracy.
Table of Contents
Properties
- $branch_id : int|null
- $created : DateTime
- $created_by : int|null
- $from_state : string
- $id : int
- $modified : DateTime|null
- $recommendation : Recommendation
- $recommendation_id : int
- $to_state : string
- $_accessible : array<string, bool>
Methods
- getBranchId() : int|null
- Get the branch ID for authorization checks.
Properties
$branch_id
public
int|null
$branch_id
Associated branch ID (when applicable)
$created
public
DateTime
$created
$created_by
public
int|null
$created_by
$from_state
public
string
$from_state
$id
public
int
$id
$modified
public
DateTime|null
$modified
Last modification timestamp
$recommendation
public
Recommendation
$recommendation
$recommendation_id
public
int
$recommendation_id
$to_state
public
string
$to_state
$_accessible
protected
array<string, bool>
$_accessible
= ['recommendation_id' => true, 'from_state' => true, 'to_state' => true, 'created' => true, 'created_by' => true, 'recommendation' => true]
Methods
getBranchId()
Get the branch ID for authorization checks.
public
getBranchId() : int|null
Child classes should override for complex branch relationships.
Return values
int|null —The branch ID, or null if no association