_name = $data->name; $this->_option = ($data->optional == '1') ? true : false; $data = (array) $data; $this->_description = $data['$t']; } /** * Returns the name of the argument. * * @return string */ public function getName() { return $this->_name; } /** * Returns whether or not the argument is optional. * * @return bool TRUE if the argument is optional, FALSE otherwise */ public function isOptional() { return $this->_optional; } /** * Returns the description of the argument. * * @return string */ public function getDescription() { return $this->_description; } }