src/Console/Command.php 1 location
|
@@ 144-153 (lines=10) @@
|
141 |
|
* |
142 |
|
* @param Input $input |
143 |
|
*/ |
144 |
|
public function addInput(Input $input) |
145 |
|
{ |
146 |
|
$reflection = new \ReflectionClass($input); |
147 |
|
|
148 |
|
$method = 'add'.$reflection->getShortName(); |
149 |
|
|
150 |
|
if (method_exists($this, $method)) { |
151 |
|
$this->$method(...array_values($input->getAttributes())); |
152 |
|
} |
153 |
|
} |
154 |
|
} |
155 |
|
|
src/Console/Stubs/NullCommand.php 1 location
|
@@ 73-82 (lines=10) @@
|
70 |
|
return $this->options; |
71 |
|
} |
72 |
|
|
73 |
|
public function addInput(Input $input) |
74 |
|
{ |
75 |
|
$reflection = new \ReflectionClass($input); |
76 |
|
|
77 |
|
$method = 'add'.$reflection->getShortName(); |
78 |
|
|
79 |
|
if (method_exists($this, $method)) { |
80 |
|
$this->$method(...array_values($input->getAttributes())); |
81 |
|
} |
82 |
|
} |
83 |
|
} |
84 |
|
|