Metaregistrar\TMCH\tmchClaim::getValue PHP Метод

getValue() приватный Метод

private getValue ( DOMElement $node, string $tagname ) : null | string
$node DOMElement
$tagname string
Результат null | string
    private function getValue($node, $tagname)
    {
        $result = $node->getElementsByTagName($tagname);
        if (is_object($result) && $result->length > 0) {
            /* @var \DOMNodeList $result */
            return $result->item(0)->nodeValue;
        }
        return null;
    }