2 namespace MediaWiki\Content\Transform
;
4 use MediaWiki\Page\PageReference
;
5 use MediaWiki\Parser\ParserOptions
;
9 * An object to hold preload transform params.
11 class PreloadTransformParamsValue
implements PreloadTransformParams
{
12 /** @var PageReference */
18 /** @var ParserOptions */
19 private $parserOptions;
21 public function __construct( PageReference
$page, ParserOptions
$parserOptions, array $params = [] ) {
23 $this->parserOptions
= $parserOptions;
24 $this->params
= $params;
29 * @return PageReference
31 public function getPage(): PageReference
{
39 public function getParams(): array {
45 * @return ParserOptions
47 public function getParserOptions(): ParserOptions
{
48 return $this->parserOptions
;