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

getValueAttributeValue() public method

public getValueAttributeValue ( $withNamespace = false, $withinItsType = true, $asType = null ) : mixed
return mixed
    public function getValueAttributeValue($withNamespace = false, $withinItsType = true, $asType = null)
    {
        return $this->getAttribute(Attribute::ATTRIBUTE_VALUE) instanceof Attribute ? $this->getAttribute(Attribute::ATTRIBUTE_VALUE)->getValue($withNamespace, $withinItsType, $asType) : '';
    }

Usage Example

 /**
  * @param Tag $tag
  * @param Tag $child
  * @return TagRestriction
  */
 private function parseRestrictionChild(Tag $tag, Tag $child)
 {
     if ($child->hasAttributeValue() && ($model = $this->getModel($tag)) instanceof Struct) {
         $model->addMeta($child->getName(), $child->getValueAttributeValue(true));
     } else {
         foreach ($child->getAttributes() as $attribute) {
             $this->parseRestrictionChildAttribute($tag, $child, $attribute);
         }
     }
     return $this;
 }
All Usage Examples Of WsdlToPhp\PackageGenerator\DomHandler\Wsdl\Tag\AbstractTag::getValueAttributeValue