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
$action
public
string
$action
$branch_id
public
int|null
$branch_id
Associated branch ID (when applicable)
$created
public
DateTime
$created
$endpoint
public
string
$endpoint
$http_method
public
string
$http_method
$id
public
int
$id
$ip_address
public
string|null
$ip_address
$modified
public
DateTime|null
$modified
Last modification timestamp
$request_summary
public
string|null
$request_summary
$response_code
public
int|null
$response_code
$service_principal
public
ServicePrincipal
$service_principal
$service_principal_id
public
int
$service_principal_id
$token
public
ServicePrincipalToken|null
$token
$token_id
public
int|null
$token_id
$_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