Page MenuHomeWickedGov Phorge

HashMessageIndex.php
No OneTemporary

Size
509 B
Referenced Files
None
Subscribers
None

HashMessageIndex.php

<?php
declare( strict_types = 1 );
namespace MediaWiki\Extension\Translate\MessageLoading;
/** Storage on hash. For testing. */
class HashMessageIndex extends MessageIndexStore {
private array $index = [];
public function retrieve( bool $readLatest = false ): array {
return $this->index;
}
/** @inheritDoc */
public function get( string $key ) {
return $this->index[$key] ?? null;
}
/** @inheritDoc */
public function store( array $array, array $diff ): void {
$this->index = $array;
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 20 2026, 18:15 (11 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5a/a6/2dca52953f16af430bbb357d3c12
Default Alt Text
HashMessageIndex.php (509 B)

Event Timeline