public function __toString() { /** @var \DOMNode $this */ return $this instanceof \DOMNode ? (string) $this->nodeValue : ''; }