We were only passing the first parameter to the wrapped object's methods. Change-Id: I27a69d1cc1b2d048e44514af8b4ac79d7ee1fb85
21 lines
324 B
PHP
21 lines
324 B
PHP
<?php
|
|
|
|
class WellProtectedClass {
|
|
protected $property;
|
|
|
|
public function __construct() {
|
|
$this->property = 1;
|
|
}
|
|
|
|
protected function incrementPropertyValue() {
|
|
$this->property++;
|
|
}
|
|
|
|
public function getProperty() {
|
|
return $this->property;
|
|
}
|
|
|
|
protected function whatSecondArg( $a, $b = false ) {
|
|
return $b;
|
|
}
|
|
}
|