Array.php
1 year ago
Broken.php
1 year ago
ClassWithCtor.php
1 year ago
ComplexClassWithCtor.php
1 year ago
DependencyInjector.php
1 year ago
DerivedClass.php
1 year ago
DerivedClass2.php
1 year ago
FactoryMethod.php
1 year ago
FactoryMethodWithError.php
1 year ago
JsonMapperCommentsDiscardedException.php
1 year ago
JsonMapperForCheckingAllowedPaths.php
1 year ago
Logger.php
1 year ago
MapsWithSetters.php
1 year ago
Php7TypedClass.php
1 year ago
Php7_1TypedClass.php
1 year ago
PrivateWithSetter.php
1 year ago
Simple.php
1 year ago
SimpleBase.php
1 year ago
SimpleBaseWithMissingDiscrimType.php
1 year ago
ValueObject.php
1 year ago
PrivateWithSetter.php
51 lines
| 1 | <?php |
| 2 | |
| 3 | class PrivateWithSetter |
| 4 | { |
| 5 | /** |
| 6 | * @var int |
| 7 | */ |
| 8 | private $privateProperty = 0; |
| 9 | |
| 10 | /** |
| 11 | * @var int |
| 12 | */ |
| 13 | private $privateNoSetter = 0; |
| 14 | |
| 15 | /** |
| 16 | * @var int |
| 17 | */ |
| 18 | private $privatePropertyPrivateSetter = 0; |
| 19 | |
| 20 | /** |
| 21 | * @param int $privateProperty |
| 22 | * |
| 23 | * @return $this |
| 24 | */ |
| 25 | public function setPrivateProperty($privateProperty) |
| 26 | { |
| 27 | $this->privateProperty = $privateProperty; |
| 28 | return $this; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * @param int $ppps |
| 33 | * |
| 34 | * @return $this |
| 35 | */ |
| 36 | private function setPrivatePropertyPrivateSetter($ppps) |
| 37 | { |
| 38 | $this->privatePropertyPrivateSetter = $ppps; |
| 39 | return $this; |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * @return int |
| 44 | */ |
| 45 | public function getPrivateProperty() |
| 46 | { |
| 47 | return $this->privateProperty; |
| 48 | } |
| 49 | } |
| 50 | ?> |
| 51 |