12use Wikimedia\Assert\Assert;
27 private function __construct( array $pages ) {
28 $this->pages = $pages;
33 Assert::parameterType( __CLASS__, $update,
'$update' );
34 '@phan-var self $update';
36 $this->pages = array_merge( $this->pages, $update->pages );
47 foreach ( $pages as $pg ) {
49 $pagesByKey[$key] = $pg;
52 return new self( $pagesByKey );
56 foreach ( $this->pages as $pg ) {
57 HTMLFileCache::clearFileCache( $pg );
63class_alias( HtmlFileCacheUpdate::class,
'HtmlFileCacheUpdate' );
Helper class for mapping page value objects to a string key.
static getKeyForPage( $page)
Returns a stable key for identifying the given page in a cache.
Interface for objects (potentially) representing an editable wiki page.