71 foreach ( $sites as $site ) {
90 return $this->sites[$globalId] ??
null;
106 return new SiteList( $this->sites );
In-memory SiteStore implementation, storing sites in an associative array.
saveSite(Site $site)
Saves the provided site.
getSite( $globalId, $source='cache')
Returns the site with provided global id, or null if there is no such site.
saveSites(array $sites)
Saves the provided sites.
clear()
Deletes all sites from the database.
getSites( $source='cache')
Returns a list of all sites.
getGlobalId()
Returns the global site identifier (ie enwiktionary).