Sets an attribute on a node.
mixed $value:
public function setAttribute(string $key, $value) : void;