public function __construct($src, $alt, $properties = array()) { parent::__construct('', $properties); $this->tag = "img"; $this->src = $src; $this->alt = $alt; }
public function __construct($action, $method, $properties = array()) { parent::__construct('', $properties); $this->tag = "form"; $this->action = $action; $this->method = $method; }
public function __construct($content, $properties = array()) { parent::__construct($content, $properties); $this->tag = "input"; }
public function __construct($content) { parent::__construct($content); $this->tag = "div"; }
public function __construct($content) { // hello parent::__construct($content); $this->tag = "section"; }