2015-02-27 17:22:16 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
class WellProtectedClass {
|
|
|
|
|
protected $property;
|
|
|
|
|
|
|
|
|
|
public function __construct() {
|
|
|
|
|
$this->property = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function incrementPropertyValue() {
|
|
|
|
|
$this->property++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getProperty() {
|
|
|
|
|
return $this->property;
|
|
|
|
|
}
|
2015-03-26 08:57:33 +00:00
|
|
|
|
|
|
|
|
protected function whatSecondArg( $a, $b = false ) {
|
|
|
|
|
return $b;
|
|
|
|
|
}
|
2015-02-27 17:22:16 +00:00
|
|
|
}
|