MediaWiki master
DateFormatterFactory.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Parser;
4
6
9 private $instances;
10
15 public function get( Language $lang ) {
16 $code = $lang->getCode();
17 if ( !isset( $this->instances[$code] ) ) {
18 $this->instances[$code] = new DateFormatter( $lang );
19 }
20 return $this->instances[$code];
21 }
22}
23
25class_alias( DateFormatterFactory::class, 'DateFormatterFactory' );
Base class for language-specific code.
Definition Language.php:78