public function __construct($name = NULL, $attrs = NULL) { $this->setName($name); if (is_array($attrs)) { $this->attrs = $attrs; } elseif ($attrs !== NULL) { $this->setText($attrs); } }