Skip to content

Commit

Permalink
Add missing isEmptyElement on possible empty element
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Oct 3, 2024
1 parent ede3ed5 commit 37c4f94
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/XML/wsdl/AbstractExtensibilityElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ public function getRequired(): ?bool
}


/**
* Test if an object, at the state it's in, would produce an empty XML-element
*
* @return bool
*/
public function isEmptyElement(): bool
{
return empty($this->getRequired());
}


/**
* Convert this tExtensibilityElement to XML.
*
Expand Down

0 comments on commit 37c4f94

Please sign in to comment.