KMP PHP API Reference

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)

$modified

public DateTime|null $modified

Last modification timestamp

$_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


        
On this page

Search results