<?php
// These stubs were generated by the phan stub generator.
// @phan-stub-for-extension simplexml@7.4.19-dev

namespace {
class SimpleXMLElement implements \Traversable, \Countable {

    // methods
    final public function __construct($data, $options = null, $data_is_url = null, $ns = null, $is_prefix = null) {}
    public function asXML($filename = null) {}
    public function saveXML($filename = null) {}
    public function xpath($path) {}
    public function registerXPathNamespace($prefix, $ns) {}
    public function attributes($ns = null, $is_prefix = null) {}
    public function children($ns = null, $is_prefix = null) {}
    public function getNamespaces($recursve = null) {}
    public function getDocNamespaces($recursve = null, $from_root = null) {}
    public function getName() {}
    public function addChild($name, $value = null, $ns = null) {}
    public function addAttribute($name, $value = null, $ns = null) {}
    public function __toString() {}
    public function count() {}
}

class SimpleXMLIterator extends \SimpleXMLElement implements \RecursiveIterator, \Iterator {

    // properties
    public $name;

    // methods
    public function rewind() {}
    public function valid() {}
    public function current() {}
    public function key() {}
    public function next() {}
    public function hasChildren() {}
    public function getChildren() {}
}

function simplexml_import_dom($node, $class_name = null) {}
function simplexml_load_file($filename, $class_name = null, $options = null, $ns = null, $is_prefix = null) {}
function simplexml_load_string($data, $class_name = null, $options = null, $ns = null, $is_prefix = null) {}
}
