Пример #1
0
 /**
  * @param bool        $root       Whether this is the root document.
  * @param string|null $width      The declared width.
  * @param string|null $height     The declared height.
  * @param string[]    $namespaces A map of custom namespaces to their URIs.
  */
 public function __construct($root = false, $width = null, $height = null, array $namespaces = array())
 {
     parent::__construct();
     $this->root = (bool) $root;
     $this->namespaces = $namespaces;
     $this->setAttributeOptional('width', $width);
     $this->setAttributeOptional('height', $height);
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
 }