function __construct($name = "", $namespace = "") { $this->Name = $name; $this->Namespace = $namespace; // call the parents constructor parent::__construct(); }
function __construct($name = "", $namespace = "", $parameters = array()) { $this->Name = $name; $this->Namespace = $namespace; // call the parents constructor parent::__construct(); foreach ($parameters as $name => $value) { $this->addParameter($name, $value); } }