Merge "Add documentation for wfClientAcceptsGzip()"
[lhc/web/wiklou.git] / tests / phpunit / data / helpers / WellProtectedClass.php
1 <?php
2
3 class WellProtectedParentClass {
4 private $privateParentProperty;
5
6 public function __construct() {
7 $this->privateParentProperty = 9000;
8 }
9
10 private function incrementPrivateParentPropertyValue() {
11 $this->privateParentProperty++;
12 }
13
14 public function getPrivateParentProperty() {
15 return $this->privateParentProperty;
16 }
17 }
18
19 class WellProtectedClass extends WellProtectedParentClass {
20 protected static $staticProperty = 'sp';
21 private static $staticPrivateProperty = 'spp';
22
23 protected $property;
24 private $privateProperty;
25
26 protected static function staticMethod() {
27 return 'sm';
28 }
29
30 private static function staticPrivateMethod() {
31 return 'spm';
32 }
33
34 public function __construct() {
35 parent::__construct();
36 $this->property = 1;
37 $this->privateProperty = 42;
38 }
39
40 protected function incrementPropertyValue() {
41 $this->property++;
42 }
43
44 private function incrementPrivatePropertyValue() {
45 $this->privateProperty++;
46 }
47
48 public function getProperty() {
49 return $this->property;
50 }
51
52 public function getPrivateProperty() {
53 return $this->privateProperty;
54 }
55
56 protected function whatSecondArg( $a, $b = false ) {
57 return $b;
58 }
59 }