public function addMethod(string $name) : Method { $node = $this->contextNode ->appendChild($this->contextNode->ownerDocument ->createElementNS('https://schema.phpunit.de/coverage/1.0', 'method')); return new Method($node, $name); }