private $skin;
/**
- * @var SiteConfiguration
+ * @var Config
*/
private $config;
/**
* Set the SiteConfiguration object
*
- * @param SiteConfiguration $s
+ * @param Config $s
*/
- public function setConfig( SiteConfiguration $s ) {
+ public function setConfig( Config $s ) {
$this->config = $s;
}
* Set the Title object
*
* @param Title $t
- * @throws MWException
*/
- public function setTitle( $t ) {
- if ( $t !== null && !$t instanceof Title ) {
- throw new MWException( __METHOD__ . " expects an instance of Title" );
- }
+ public function setTitle( Title $t ) {
$this->title = $t;
}
/**
* Get the Title object
*
- * @return Title
+ * @return Title|null
*/
public function getTitle() {
if ( !is_null( $this->title ) ) {
}
}
- /**
- * Set the Language object
- *
- * @deprecated since 1.19 Use setLanguage instead
- * @param Language|string $l Language instance or language code
- */
- public function setLang( $l ) {
- wfDeprecated( __METHOD__, '1.19' );
- $this->setLanguage( $l );
- }
-
/**
* Set the Language object
*
}
}
- /**
- * @deprecated since 1.19 Use getLanguage instead
- * @return Language
- */
- public function getLang() {
- wfDeprecated( __METHOD__, '1.19' );
- $this->getLanguage();
- }
-
/**
* Get the Language object
*
* it would set only the original context, and not take
* into account any changes.
*
- * @param String Message name
- * @param Variable number of message arguments
+ * @param mixed $args,... Arguments to wfMessage
* @return Message
*/
public function msg() {