_description = $text; return $this; } return $this->_description; } /** * Get or set an epilog to the parser. The epilog is added to the end of * the options and arguments listing when help is generated. * * @param string $text Text when setting or null when reading. * @return mixed If reading, the value of the epilog. If setting $this will be returned. */ public function epilog($text = null) { if ($text !== null) { $this->_epilog = $text; return $this; } return $this->_epilog; } /** * Add an option to the option parser. Options allow you to define optional or required * parameters for your console application. Options are defined by the parameters they use. * * ### Params * * - `shortcut` - The single letter variant for this option, leave undefined for none. * - `required` - Set to true to force this option to be required. An exception will be thrown * when this option is not present. * - `description` - Description for this option. * - `type` - Require a certain type. Available types are `int` and `string`. If the options * value is the wrong type an exception will be raised. * - `default` - The default value for this option. If not defined the default will be null. * * @param string $name The name you want to the value to be parsed out as when options are parsed. * @param array $params An array of parameters that define the behavior of the option * @return ConsoleOptionParser returns $this. */ public function addOption($name, $params = array()) { } }