Stats
in package
FinalYes
Table of Contents
Properties
- $databaseSize : int
- $indexes : array<string|int, mixed>
- $lastUpdate : DateTimeImmutable|null
- $usedDatabaseSize : int
Methods
- __construct() : mixed
- fromArray() : self
- getDatabaseSize() : int
- getIndexes() : array<non-empty-string, IndexStats>
- getLastUpdate() : DateTimeImmutable|null
- getUsedDatabaseSize() : int
Properties
$databaseSize read-only
private
int
$databaseSize
$indexes read-only
private
array<string|int, mixed>
$indexes
$lastUpdate read-only
private
DateTimeImmutable|null
$lastUpdate
$usedDatabaseSize read-only
private
int
$usedDatabaseSize
Methods
__construct()
public
__construct(int $databaseSize, int $usedDatabaseSize, DateTimeImmutable|null $lastUpdate, array<non-empty-string, IndexStats> $indexes) : mixed
Parameters
- $databaseSize : int
- $usedDatabaseSize : int
- $lastUpdate : DateTimeImmutable|null
- $indexes : array<non-empty-string, IndexStats>
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfgetDatabaseSize()
public
getDatabaseSize() : int
Return values
intgetIndexes()
public
getIndexes() : array<non-empty-string, IndexStats>
Return values
array<non-empty-string, IndexStats>getLastUpdate()
public
getLastUpdate() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetUsedDatabaseSize()
public
getUsedDatabaseSize() : int