MediaWiki
REL1_32
TestDeprecatedClass.php
Go to the documentation of this file.
1
<?php
2
3
class
TestDeprecatedClass
{
4
5
use
DeprecationHelper
;
6
7
protected
$protectedDeprecated
= 1;
8
protected
$protectedNonDeprecated
= 1;
9
private
$privateDeprecated
= 1;
10
private
$privateNonDeprecated
= 1;
11
12
public
function
__construct
() {
13
$this->deprecatedPublicProperties = [
14
'protectedDeprecated'
=>
'1.23'
,
15
'privateDeprecated'
=>
'1.24'
,
16
];
17
}
18
19
public
function
setThings
( $prod, $prond, $prid, $prind ) {
20
$this->protectedDeprecated = $prod;
21
$this->protectedNonDeprecated = $prond;
22
$this->privateDeprecated = $prid;
23
$this->privateNonDeprecated = $prind;
24
}
25
26
public
function
getThings
() {
27
return
[
28
'prod'
=>
$this->protectedDeprecated
,
29
'prond'
=>
$this->protectedNonDeprecated
,
30
'prid'
=>
$this->privateDeprecated
,
31
'prind'
=>
$this->privateNonDeprecated
,
32
];
33
}
34
35
}
DeprecationHelper
trait DeprecationHelper
Use this trait in classes which have properties for which public access is deprecated.
Definition
DeprecationHelper.php:45
TestDeprecatedClass
Definition
TestDeprecatedClass.php:3
TestDeprecatedClass\$privateNonDeprecated
$privateNonDeprecated
Definition
TestDeprecatedClass.php:10
TestDeprecatedClass\$protectedNonDeprecated
$protectedNonDeprecated
Definition
TestDeprecatedClass.php:8
TestDeprecatedClass\__construct
__construct()
Definition
TestDeprecatedClass.php:12
TestDeprecatedClass\$protectedDeprecated
$protectedDeprecated
Definition
TestDeprecatedClass.php:7
TestDeprecatedClass\$privateDeprecated
$privateDeprecated
Definition
TestDeprecatedClass.php:9
TestDeprecatedClass\setThings
setThings( $prod, $prond, $prid, $prind)
Definition
TestDeprecatedClass.php:19
TestDeprecatedClass\getThings
getThings()
Definition
TestDeprecatedClass.php:26
tests
phpunit
includes
debug
TestDeprecatedClass.php
Generated on Mon Nov 25 2024 15:58:38 for MediaWiki by
1.10.0