| 1 |
<?php |
| 2 |
namespace MediaWiki\Content\Transform; |
| 3 |
|
| 4 |
use MediaWiki\Page\PageReference; |
| 5 |
use MediaWiki\Parser\ParserOptions; |
| 6 |
use MediaWiki\User\UserIdentity; |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
class PreSaveTransformParamsValue implements PreSaveTransformParams { |
| 13 |
|
| 14 |
private $page; |
| 15 |
|
| 16 |
|
| 17 |
private $user; |
| 18 |
|
| 19 |
|
| 20 |
private $parserOptions; |
| 21 |
|
| 22 |
public function __construct( PageReference $page, UserIdentity $user, ParserOptions $parserOptions ) { |
| 23 |
$this->page = $page; |
| 24 |
$this->user = $user; |
| 25 |
$this->parserOptions = $parserOptions; |
| 26 |
} |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
public function getPage(): PageReference { |
| 33 |
return $this->page; |
| 34 |
} |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
public function getUser(): UserIdentity { |
| 41 |
return $this->user; |
| 42 |
} |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
public function getParserOptions(): ParserOptions { |
| 49 |
return $this->parserOptions; |
| 50 |
} |
| 51 |
} |