MediaWiki REL1_32
TestDeprecatedClass.php
Go to the documentation of this file.
1<?php
2
4
6
7 protected $protectedDeprecated = 1;
9 private $privateDeprecated = 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 [
32 ];
33 }
34
35}
trait DeprecationHelper
Use this trait in classes which have properties for which public access is deprecated.
setThings( $prod, $prond, $prid, $prind)