Merge "Added release notes for 'ContentHandler::runLegacyHooks' removal"
[mediawiki.git] / tests / phpunit / data / helpers / WellProtectedClass.php
blobf2b5a14926858f8795ac80bcfbe8102a6899d136
1 <?php
3 class WellProtectedParentClass {
4 private $privateParentProperty;
6 public function __construct() {
7 $this->privateParentProperty = 9000;
10 private function incrementPrivateParentPropertyValue() {
11 $this->privateParentProperty++;
14 public function getPrivateParentProperty() {
15 return $this->privateParentProperty;
19 class WellProtectedClass extends WellProtectedParentClass {
20 protected static $staticProperty = 'sp';
21 private static $staticPrivateProperty = 'spp';
23 protected $property;
24 private $privateProperty;
26 protected static function staticMethod() {
27 return 'sm';
30 private static function staticPrivateMethod() {
31 return 'spm';
34 public function __construct() {
35 parent::__construct();
36 $this->property = 1;
37 $this->privateProperty = 42;
40 protected function incrementPropertyValue() {
41 $this->property++;
44 private function incrementPrivatePropertyValue() {
45 $this->privateProperty++;
48 public function getProperty() {
49 return $this->property;
52 public function getPrivateProperty() {
53 return $this->privateProperty;
56 protected function whatSecondArg( $a, $b = false ) {
57 return $b;