Meilisearch PHP | Documentation

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
self

getDatabaseSize()

public getDatabaseSize() : int
Return values
int

getLastUpdate()

public getLastUpdate() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

getUsedDatabaseSize()

public getUsedDatabaseSize() : int
Return values
int

        
On this page

Search results