WSDL\XML\XMLAttributeHelper::createAttributeWithValue PHP Method

createAttributeWithValue() public method

public createAttributeWithValue ( string $attributeName, string $value ) : DOMAttr
$attributeName string
$value string
return DOMAttr
    public function createAttributeWithValue($attributeName, $value)
    {
        $attribute = $this->DOMDocument->createAttribute($attributeName);
        $attribute->value = $value;
        return $attribute;
    }