61 foreach ( $sites as $site ) {
78 return $this->sites[$globalId] ??
null;
In-memory SiteStore implementation, stored in an associative array.
saveSite(Site $site)
Save the provided site.
getSite( $globalId, $source='cache')
Return the site with provided global ID, or null if there is no such site.
saveSites(array $sites)
Save the provided sites.
__construct(array $sites=[])
clear()
Delete all sites from the database.
getSites( $source='cache')
Return a list of all sites.
Array-like collection of Site objects.
Represents a single site.
getGlobalId()
Returns the global site identifier (ie enwiktionary).
Interface for storing and retrieving Site objects.