extends |
BaseEvent |
|---|
Base class to represent an audit event.
An audit event represents an action that are typically logged for audit purposes. An audit event is usually an action performed by a remote user agent affecting a subject (typically a user) or a client.
This base class automatically collects the following additional information:
log_location configuration variable is set to true,
uses a GeoIP resolver service to resolve the location of the IP
address| Methods | ||
|---|---|---|
public
|
__construct(Storable $subject = null, Storable $client = null)
|
# |
public
|
getTime(): DateTimeImmutable
|
# |
public
|
getIP(): string|null
|
# |
public
|
getUserAgent(): string|null
|
# |
public
|
getLocation(): array<string, string>|null
|
# |
public
|
getSubject(): Storable|null
|
# |
public
|
getClient(): Storable|null
|
# |
public
|
getAuditEventName(): string
|
# |
| Properties | |||
|---|---|---|---|
protected
|
DateTimeImmutable
|
$time
|
# |
protected
|
string|null
|
$ip = null
|
# |
protected
|
string|null
|
$userAgent = null
|
# |
protected
|
array<string, string>|null
|
$location = null
|
# |
protected
|
Storable|null
|
$subject
|
# |
protected
|
Storable|null
|
$client
|
# |