Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion src/Database/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class Database
/**
* @var array<string, array{encode: callable, decode: callable}>
*/
private array $instanceFilters = [];
protected array $instanceFilters = [];

/**
* @var array<string, mixed>
Expand Down Expand Up @@ -4757,6 +4757,26 @@ public function getAdapter(): Adapter
return $this->adapter;
}

/**
* Get Cache
*
* @return Cache
*/
public function getCache(): Cache
{
return $this->cache;
}

/**
* Get instance filters
*
* @return array<string, array{encode: callable, decode: callable}>
*/
public function getInstanceFilters(): array
{
return $this->instanceFilters;
}

/**
* @param Document $collection
* @param array<Query> $queries
Expand Down