Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
HashMessageIndex.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\MessageLoading;
5
8 private array $index = [];
9
10 public function retrieve( bool $readLatest = false ): array {
11 return $this->index;
12 }
13
15 public function get( string $key ) {
16 return $this->index[$key] ?? null;
17 }
18
20 public function store( array $array, array $diff ): void {
21 $this->index = $array;
22 }
23}