@@ 70-77 (lines=8) @@ | ||
67 | return $this; |
|
68 | } |
|
69 | ||
70 | public function verbose($level = 'v') |
|
71 | { |
|
72 | if (!in_array($level, $this->verbose_levels)) { |
|
73 | throw new \InvalidArgumentException('expected ' . implode(',', $this->verbose_levels)); |
|
74 | } |
|
75 | $this->option('-' . $level); |
|
76 | return $this; |
|
77 | } |
|
78 | ||
79 | public function noAnsi() |
|
80 | { |
|
@@ 97-104 (lines=8) @@ | ||
94 | return $this; |
|
95 | } |
|
96 | ||
97 | public function format($formater) |
|
98 | { |
|
99 | if (!in_array($formater, $this->formaters)) { |
|
100 | throw new \InvalidArgumentException('expected ' . implode(',', $this->formaters)); |
|
101 | } |
|
102 | $this->option('format', $formater); |
|
103 | return $this; |
|
104 | } |
|
105 | ||
106 | public function getCommand() |
|
107 | { |
@@ 121-128 (lines=8) @@ | ||
118 | * |
|
119 | * @return $this |
|
120 | */ |
|
121 | public function verbose($level = 'v') |
|
122 | { |
|
123 | if (!in_array($level, $this->verbose_levels)) { |
|
124 | throw new \InvalidArgumentException('expected ' . implode(',', $this->verbose_levels)); |
|
125 | } |
|
126 | $this->option('-' . $level); |
|
127 | return $this; |
|
128 | } |
|
129 | ||
130 | /** |
|
131 | * @param string $formater |
|
@@ 135-142 (lines=8) @@ | ||
132 | * |
|
133 | * @return $this |
|
134 | */ |
|
135 | public function format($formater) |
|
136 | { |
|
137 | if (!in_array($formater, $this->formaters)) { |
|
138 | throw new \InvalidArgumentException('expected ' . implode(',', $this->formaters)); |
|
139 | } |
|
140 | $this->option('format', $formater); |
|
141 | return $this; |
|
142 | } |
|
143 | ||
144 | /** |
|
145 | * Returns command that can be executed. |