KMP PHP API Reference

ServicePrincipalAuditLog extends BaseEntity
in package

ServicePrincipalAuditLog Entity - API Request Audit Trail

Records all API requests for compliance and debugging.

Table of Contents

Properties

$action  : string
$branch_id  : int|null
$created  : DateTime
$endpoint  : string
$http_method  : string
$id  : int
$ip_address  : string|null
$modified  : DateTime|null
$request_summary  : string|null
$response_code  : int|null
$service_principal  : ServicePrincipal
$service_principal_id  : int
$token  : ServicePrincipalToken|null
$token_id  : int|null
$_accessible  : array<string, bool>
Fields accessible for mass assignment.

Methods

getBranchId()  : int|null
Get the branch ID for authorization checks.
_getCreatedToString()  : string
Get formatted creation date for display.
_getStatusCategory()  : string
Get HTTP status category (success, redirect, client error, server error).

Properties

$branch_id

public int|null $branch_id

Associated branch ID (when applicable)

$modified

public DateTime|null $modified

Last modification timestamp

$_accessible

Fields accessible for mass assignment.

protected array<string, bool> $_accessible = ['service_principal_id' => true, 'token_id' => true, 'action' => true, 'endpoint' => true, 'http_method' => true, 'ip_address' => true, 'request_summary' => true, 'response_code' => 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

_getCreatedToString()

Get formatted creation date for display.

protected _getCreatedToString() : string
Return values
string

_getStatusCategory()

Get HTTP status category (success, redirect, client error, server error).

protected _getStatusCategory() : string
Return values
string

        
On this page

Search results