Merge "jquery.tablesorter: Silence an expected "sort-rowspan-error" warning"
[mediawiki.git] / includes / content / Transform / PreSaveTransformParamsValue.php
blobe6507656079541964e64fc8fe0e10ef08f23eef9
1 <?php
2 namespace MediaWiki\Content\Transform;
4 use MediaWiki\Page\PageReference;
5 use MediaWiki\Parser\ParserOptions;
6 use MediaWiki\User\UserIdentity;
8 /**
9 * @internal
10 * An object to hold pre-save transform params.
12 class PreSaveTransformParamsValue implements PreSaveTransformParams {
13 /** @var PageReference */
14 private $page;
16 /** @var UserIdentity */
17 private $user;
19 /** @var ParserOptions */
20 private $parserOptions;
22 public function __construct( PageReference $page, UserIdentity $user, ParserOptions $parserOptions ) {
23 $this->page = $page;
24 $this->user = $user;
25 $this->parserOptions = $parserOptions;
28 public function getPage(): PageReference {
29 return $this->page;
32 public function getUser(): UserIdentity {
33 return $this->user;
36 public function getParserOptions(): ParserOptions {
37 return $this->parserOptions;