Import: Handle uploads with sha1 starting with 0 properly
[mediawiki.git] / tests / phpunit / data / helpers / WellProtectedClass.php
bloba45cfbbfc3a7d1fb7f9207856fe755d7b02de25d
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 $property;
21 private $privateProperty;
23 public function __construct() {
24 parent::__construct();
25 $this->property = 1;
26 $this->privateProperty = 42;
29 protected function incrementPropertyValue() {
30 $this->property++;
33 private function incrementPrivatePropertyValue() {
34 $this->privateProperty++;
37 public function getProperty() {
38 return $this->property;
41 public function getPrivateProperty() {
42 return $this->privateProperty;
45 protected function whatSecondArg( $a, $b = false ) {
46 return $b;