WsdlToPhp\PackageGenerator\DomHandler\Wsdl\Tag\AbstractTag::hasAttributeName PHP Method

hasAttributeName() public method

public hasAttributeName ( ) : boolean
return boolean
    public function hasAttributeName()
    {
        return $this->hasAttribute(Attribute::ATTRIBUTE_NAME);
    }

Usage Example

 /**
  * @param Tag $tag
  */
 public function parseTag(Tag $tag)
 {
     $parent = $tag->getSuitableParent();
     if ($parent instanceof Tag) {
         $model = $this->getModel($parent);
         if ($model instanceof Struct) {
             if ($tag->hasAttributeName() && ($modelAttribute = $model->getAttribute($tag->getAttributeName())) instanceof StructAttribute) {
                 return $this->parseTagAttributes($tag, $model, $modelAttribute);
             }
             $this->parseTagAttributes($tag, $model);
         }
     }
     $this->parseTagAttributes($tag);
 }