PHPMD\RuleSetFactory::getPropertyValue PHP Method

getPropertyValue() private method

Returns the value of a property node. This value can be expressed in two different notations. First version is an attribute named value and the second valid notation is a child element named value that contains the value as character data.
Since: 0.2.5
private getPropertyValue ( SimpleXMLElement $propertyNode ) : string
$propertyNode SimpleXMLElement
return string
    private function getPropertyValue(\SimpleXMLElement $propertyNode)
    {
        if (isset($propertyNode->value)) {
            return (string) $propertyNode->value;
        }
        return (string) $propertyNode['value'];
    }