src/WsdlHandler/Tag/TagDocumentation.php
public function getSuitableParent($checkName = true, array $additionalTags = [], $maxDeep = self::MAX_DEEP, $strict = false)
    {
        if ($strict === false) {
            $enumerationTag = $this->getStrictParent(WsdlDocument::TAG_ENUMERATION);
            if ($enumerationTag instanceof TagEnumeration) {
                return $enumerationTag;
            }
        }
        return parent::getSuitableParent($checkName, $additionalTags, $maxDeep, $strict);
    }
public function getSuitableParent($checkName = true, array $additionalTags = [], $maxDeep = self::MAX_DEEP, $strict = false)
    {
        if ($strict === false) {
            $enumerationTag = $this->getStrictParent(WsdlDocument::TAG_ENUMERATION);
            if ($enumerationTag instanceof TagEnumeration) {
                return $enumerationTag;
            }
        }
        return parent::getSuitableParent($checkName, $additionalTags, $maxDeep, $strict);
    }
public function getSuitableParent ( $ checkName = true , array $ additionalTags = [ ] , $ maxDeep = self :: MAX_DEEP , $ strict = false ) { if ( $ strict === false ) { $ enumerationTag = $ this -> getStrictParent ( WsdlDocument :: TAG_ENUMERATION ) ; if ( $ enumerationTag instanceof TagEnumeration ) { return $ enumerationTag ; } } return parent :: getSuitableParent ( $ checkName , $ additionalTags , $ maxDeep , $ strict ) ; }
Finds parent node of this documentation node without taking care of the name attribute for enumeration.
This case is managed first because enumerations are contained by elements and
the method could climb to its parent without stopping on the enumeration tag.
Indeed, depending on the node, it may contain or not the attribute named "name" so we have to split each case.
@see \WsdlToPhp\PackageGenerator\WsdlHandler\Tag\AbstractTag::getSuitableParent()
Finds parent node of this documentation node without taking care of the name attribute for enumeration . This case is managed first because enumerations are contained by elements and the method could climb to its parent without stopping on the enumeration tag . Indeed depending on the node it may contain or not the attribute named name so we have to split each case .