| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | class Configure |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var Command |
||
| 17 | */ |
||
| 18 | private $cmd = null; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Configure constructor. |
||
| 22 | * @param Command $cmd |
||
| 23 | */ |
||
| 24 | public function __construct(Command $cmd) |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Adds an option. |
||
| 31 | * |
||
| 32 | * @param string $name The option name |
||
| 33 | * @param string $shortcut The shortcut (can be null) |
||
| 34 | * @param int $mode The option mode: One of the InputOption::VALUE_* constants |
||
| 35 | * @param string $description A description text |
||
| 36 | * @param mixed $default The default value (must be null for InputOption::VALUE_NONE) |
||
| 37 | * |
||
| 38 | * @return static |
||
| 39 | */ |
||
| 40 | public function addOption($name, $shortcut = null, $mode = null, $description = '', $default = null) : self |
||
| 46 |