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

getAttributeName() public method

public getAttributeName ( ) : string
return string
    public function getAttributeName()
    {
        return $this->getAttribute(Attribute::ATTRIBUTE_NAME) instanceof Attribute ? $this->getAttribute(Attribute::ATTRIBUTE_NAME)->getValue() : '';
    }

Usage Example

 /**
  * Return the model on which the method will be called
  * @param Tag $tag
  * @return Struct|Method
  */
 protected function getModel(Tag $tag)
 {
     switch ($tag->getName()) {
         case WsdlDocument::TAG_OPERATION:
             $model = $this->getMethodByName($tag->getAttributeName());
             break;
         default:
             $model = $this->getStructByName($tag->getAttributeName());
             break;
     }
     return $model;
 }
All Usage Examples Of WsdlToPhp\PackageGenerator\DomHandler\Wsdl\Tag\AbstractTag::getAttributeName