/** * Create a global variable element using a declaration specification * for its type. * @param string $name Name of the variable. * @param string $type Parameter type by specification, eg: const int* * @param string $description A description used to generate documentation. */ public function __construct($name, $type, $description = "") { parent::__construct($type, $description); $this->name = $name; }
/** * Create a parameter element from a declaration specification for the type. * @param string $name Name of the parameter. * @param string $type Parameter type by specification, eg: const int* * @param string $default_value Default value of the parameter. * @param string $description */ public function __construct($name, $type, $default_value = "", $description = "") { parent::__construct($type, $description); $this->name = $name; $this->default_value = $default_value; }