Repository navigation
Why getter is not used for private property in parent class? #421
|
Hi there, following #392 (comment) we used the Now the problem: class ShipmentDetailsTypeType extends ShipmentDetailsType
{
}
class ShipmentDetailsType {
/**
* @var string
*/
private $product;
}
We tried a workaround with ->addRule(new Rules\TypenameMatchesRule(
new Rules\AssembleRule(new Assembler\PropertyAssembler(\Laminas\Code\Generator\PropertyGenerator::VISIBILITY_PROTECTED)),
'/^ShipmentDetailsTypeType$/'
))but the properties are still created 🆘 😄 What can we do now to get things running? Kind regards Here the Error and the example data:
|
Replies: 1 comment 5 replies
|
Have you tried starting from an empty ruleset before adding the property assembler? Otherwise the default assembler will create the property as private. |


Have you tried starting from an empty ruleset before adding the property assembler?
Otherwise the default assembler will create the property as private.
Ext-soap uses properties to encode and decode.
The added getters and setters are for end users in order to read from or write to the model.