1 | <?php |
||
23 | trait ConsoleAwareMethods |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * @readwrite |
||
28 | * @var InputInterface |
||
29 | */ |
||
30 | protected $input; |
||
31 | |||
32 | /** |
||
33 | * @readwrite |
||
34 | * @var OutputInterface |
||
35 | */ |
||
36 | protected $output; |
||
37 | |||
38 | /** |
||
39 | * @readwrite |
||
40 | * @var Command |
||
41 | */ |
||
42 | protected $command; |
||
43 | |||
44 | /** |
||
45 | * Set the console input |
||
46 | * |
||
47 | * @param InputInterface $input |
||
48 | * |
||
49 | * @return self|MetaDataGeneratorInterface |
||
50 | */ |
||
51 | 16 | public function setInput(InputInterface $input) |
|
56 | |||
57 | /** |
||
58 | * Get console input |
||
59 | * |
||
60 | * @return InputInterface |
||
61 | */ |
||
62 | 6 | public function getInput() |
|
66 | |||
67 | /** |
||
68 | * Sets the console output |
||
69 | * |
||
70 | * @param OutputInterface $output |
||
71 | * |
||
72 | * @return self|MetaDataGeneratorInterface |
||
73 | */ |
||
74 | 16 | public function setOutput(OutputInterface $output) |
|
79 | |||
80 | /** |
||
81 | * Get console output |
||
82 | * |
||
83 | * @return OutputInterface |
||
84 | */ |
||
85 | 6 | public function getOutput() |
|
89 | |||
90 | /** |
||
91 | * Gets command property |
||
92 | * |
||
93 | * @return Command |
||
94 | */ |
||
95 | 10 | public function getCommand() |
|
99 | |||
100 | /** |
||
101 | * Sets command property |
||
102 | * |
||
103 | * @param Command $command |
||
104 | * |
||
105 | * @return self|MetaDataGeneratorInterface |
||
106 | */ |
||
107 | 16 | public function setCommand(Command $command) |
|
112 | |||
113 | |||
114 | } |