Skip to content

Commit 1926748

Browse files
big-dreamliu21st
authored andcommitted
完善注释
1 parent 58c1e95 commit 1926748

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

src/think/console/input/Option.php

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,49 @@
1111

1212
namespace think\console\input;
1313

14+
/**
15+
* 命令行选项
16+
* @package think\console\input
17+
*/
1418
class Option
1519
{
16-
20+
// 无需传值
1721
const VALUE_NONE = 1;
22+
// 必须传值
1823
const VALUE_REQUIRED = 2;
24+
// 可选传值
1925
const VALUE_OPTIONAL = 4;
26+
// 传数组值
2027
const VALUE_IS_ARRAY = 8;
2128

29+
/**
30+
* 选项名
31+
* @var string
32+
*/
2233
private $name;
34+
35+
/**
36+
* 选项短名称
37+
* @var string
38+
*/
2339
private $shortcut;
40+
41+
/**
42+
* 选项类型
43+
* @var int
44+
*/
2445
private $mode;
46+
47+
/**
48+
* 选项默认值
49+
* @var mixed
50+
*/
2551
private $default;
52+
53+
/**
54+
* 选项描述
55+
* @var string
56+
*/
2657
private $description;
2758

2859
/**

0 commit comments

Comments
 (0)