* @since 1.23
*/
class TitleValue implements LinkTarget {
+
/**
* @var int
*/
- protected $namespace;
+ private $namespace;
/**
* @var string
*/
- protected $dbkey;
+ private $dbkey;
/**
* @var string
*/
- protected $fragment;
+ private $fragment;
/**
* @var string
*/
- protected $interwiki;
+ private $interwiki;
/**
* Constructs a TitleValue.
}
/**
+ * @since 1.23
* @return int
*/
public function getNamespace() {
}
/**
+ * @since 1.23
* @return string
*/
public function getFragment() {
/**
* Returns the title's DB key, as supplied to the constructor,
* without namespace prefix or fragment.
+ * @since 1.23
*
* @return string
*/
/**
* Returns the title in text form,
* without namespace prefix or fragment.
+ * @since 1.23
*
* This is computed from the DB key by replacing any underscores with spaces.
*
* Returns a string representation of the title, for logging. This is purely informative
* and must not be used programmatically. Use the appropriate TitleFormatter to generate
* the correct string representation for a given use.
+ * @since 1.23
*
* @return string
*/