Merge "rdbms: make transaction rounds apply DBO_TRX to DB_REPLICA connections"
[mediawiki.git] / includes / content / Transform / PreloadTransformParamsValue.php
blob5c55675d89c352cb1969d8fde902769777002c3a
1 <?php
2 namespace MediaWiki\Content\Transform;
4 use MediaWiki\Page\PageReference;
5 use MediaWiki\Parser\ParserOptions;
7 /**
8 * @internal
9 * An object to hold preload transform params.
11 class PreloadTransformParamsValue implements PreloadTransformParams {
12 /** @var PageReference */
13 private $page;
15 /** @var array */
16 private $params;
18 /** @var ParserOptions */
19 private $parserOptions;
21 public function __construct( PageReference $page, ParserOptions $parserOptions, array $params = [] ) {
22 $this->page = $page;
23 $this->parserOptions = $parserOptions;
24 $this->params = $params;
27 /**
29 * @return PageReference
31 public function getPage(): PageReference {
32 return $this->page;
35 /**
37 * @return array
39 public function getParams(): array {
40 return $this->params;
43 /**
45 * @return ParserOptions
47 public function getParserOptions(): ParserOptions {
48 return $this->parserOptions;