You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mikaël DELSOL edited this page Jun 20, 2017
·
2 revisions
Each generated class which represents a Struct element that has to be sent or received have its properties defined as public. Nevertheless you SHOULD always use the generated setters and getters in order to ensure the good behavior of the objects you create.
Following the fixed issue #48, it has been decided to unset nillable and non required (minOccurs=0) properties from the object as soon as the value assigned to the property is null.
To handle this particularities:
the setter takes care of unsetting the property if the value passed as parameter to this method is null,
the getter ensure that no PHP notice (Undefined property) is fired when we try to access the property, null is then returned.