Make TitleValue fields private
Class is extended only in JsonConfig extension, but these fields are not accessed. The @deprecated annotation was put in there to prevent external access, since the fields were protected we can't use DeprecationHelper to hard deprecate. The class is not @stable to extend, so for all intents and purposes protected is equivalent to private. Change-Id: I30089cf1f1361bf8f8c544316e422581ac7aea64
This commit is contained in:
parent
a4b5426e4c
commit
045d04ca2b
1 changed files with 8 additions and 20 deletions
|
|
@ -39,29 +39,17 @@ use Wikimedia\Assert\ParameterTypeException;
|
||||||
*/
|
*/
|
||||||
class TitleValue implements LinkTarget {
|
class TitleValue implements LinkTarget {
|
||||||
|
|
||||||
/**
|
/** @var int */
|
||||||
* @deprecated in 1.31. This class is immutable. Use the getter for access.
|
private $namespace;
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
protected $namespace;
|
|
||||||
|
|
||||||
/**
|
/** @var string */
|
||||||
* @deprecated in 1.31. This class is immutable. Use the getter for access.
|
private $dbkey;
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
protected $dbkey;
|
|
||||||
|
|
||||||
/**
|
/** @var string */
|
||||||
* @deprecated in 1.31. This class is immutable. Use the getter for access.
|
private $fragment;
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
protected $fragment;
|
|
||||||
|
|
||||||
/**
|
/** @var string */
|
||||||
* @deprecated in 1.31. This class is immutable. Use the getter for access.
|
private $interwiki;
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
protected $interwiki;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Text form including namespace/interwiki, initialised on demand
|
* Text form including namespace/interwiki, initialised on demand
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue