paramValue = $paramValue; $this->deprecated = (bool)$deprecated; $this->internal = (bool)$internal; } /** * Fetch the parameter value * @return string */ public function getParamValue() { return $this->paramValue; } /** * Fetch the 'deprecated' flag * @since 1.30 * @return bool */ public function isDeprecated() { return $this->deprecated; } /** * Fetch the 'internal' flag * @since 1.35 * @return bool */ public function isInternal() { return $this->internal; } /** * Fetch the message. * @return string */ public function fetchMessage() { if ( $this->message === null ) { $prefix = ''; if ( $this->isDeprecated() ) { $prefix .= '' . $this->subMessage( 'api-help-param-deprecated' ) . '' . $this->subMessage( 'word-separator' ); } if ( $this->isInternal() ) { $prefix .= '' . $this->subMessage( 'api-help-param-internal' ) . '' . $this->subMessage( 'word-separator' ); } $this->message = ";{$this->paramValue}:" . $prefix . parent::fetchMessage(); } return $this->message; } private function subMessage( $key ) { $msg = new Message( $key ); $msg->interface = $this->interface; $msg->language = $this->language; $msg->useDatabase = $this->useDatabase; $msg->title = $this->title; return $msg->fetchMessage(); } }