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
if (!$contentsOriginalIteminstanceof \ColissimoPostage\StructType\Original) {
146
+
thrownew \InvalidArgumentException(sprintf('The original property can only contain items of \ColissimoPostage\StructType\Original, "%s" given', is_object($contentsOriginalItem) ? get_class($contentsOriginalItem) : gettype($contentsOriginalItem)), __LINE__);
147
+
}
148
+
}
149
+
if (is_null($original) || (is_array($original) && empty($original))) {
if (!$iteminstanceof \ColissimoPostage\StructType\Original) {
166
+
thrownew \InvalidArgumentException(sprintf('The original property can only contain items of \ColissimoPostage\StructType\Original, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
167
+
}
168
+
$this->original[] = $item;
169
+
return$this;
170
+
}
110
171
/**
111
172
* Method called when an object has been exported with var_export() functions
112
173
* It allows to return an object instantiated with the values
0 commit comments