<?php
namespace MediaWiki\Content\Transform;

use MediaWiki\Page\PageReference;
use MediaWiki\Parser\ParserOptions;
use MediaWiki\User\UserIdentity;

/**
 * @internal
 * An object to hold pre-save transform params.
 */
class PreSaveTransformParamsValue implements PreSaveTransformParams {
	private PageReference $page;
	private UserIdentity $user;
	private ParserOptions $parserOptions;

	public function __construct( PageReference $page, UserIdentity $user, ParserOptions $parserOptions ) {
		$this->page = $page;
		$this->user = $user;
		$this->parserOptions = $parserOptions;
	}

	public function getPage(): PageReference {
		return $this->page;
	}

	public function getUser(): UserIdentity {
		return $this->user;
	}

	public function getParserOptions(): ParserOptions {
		return $this->parserOptions;
	}
}
