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
ClassWithCtor.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | class ClassWithCtor |
| 4 | { |
| 5 | private $attribute_1; |
| 6 | private $attribute_2; |
| 7 | |
| 8 | public function __construct($attr1, JsonMapperTest_ValueObject $attr2) |
| 9 | { |
| 10 | $this->attribute_1 = $attr1; |
| 11 | $this->attribute_2 = $attr2; |
| 12 | } |
| 13 | |
| 14 | public function getAttr1() |
| 15 | { |
| 16 | return $this->attribute_1; |
| 17 | } |
| 18 | |
| 19 | public function getAttr2() |
| 20 | { |
| 21 | return $this->attribute_2; |
| 22 | } |
| 23 | } |
| 24 |