Debian Codegraph @

includes/content/Transform/PreloadTransformParamsValue.php

raw symbols SCIP
1 <?php
2 namespace MediaWiki\Content\Transform;
3
4 use MediaWiki\Page\PageReference;
5 use MediaWiki\Parser\ParserOptions;
6
7 /**
8 * @internal
9 * An object to hold preload transform params.
10 */
11 class PreloadTransformParamsValue implements PreloadTransformParams {
12 /** @var PageReference */
13 private $page;
14
15 /** @var array */
16 private $params;
17
18 /** @var ParserOptions */
19 private $parserOptions;
20
21 public function __construct( PageReference $page, ParserOptions $parserOptions, array $params = [] ) {
22 $this->page = $page;
23 $this->parserOptions = $parserOptions;
24 $this->params = $params;
25 }
26
27 /**
28 *
29 * @return PageReference
30 */
31 public function getPage(): PageReference {
32 return $this->page;
33 }
34
35 /**
36 *
37 * @return array
38 */
39 public function getParams(): array {
40 return $this->params;
41 }
42
43 /**
44 *
45 * @return ParserOptions
46 */
47 public function getParserOptions(): ParserOptions {
48 return $this->parserOptions;
49 }
50 }