1 | <?php |
||
27 | class ReportTransferCommand implements ReportTransferAware |
||
28 | { |
||
29 | |||
30 | use ReportTransferAwareTrait; |
||
31 | |||
32 | /** |
||
33 | * @var Context |
||
34 | */ |
||
35 | private $context; |
||
36 | |||
37 | /** |
||
38 | * @var Stdio |
||
39 | */ |
||
40 | private $stdio; |
||
41 | |||
42 | /** |
||
43 | * @var \Eloquent\Pathogen\AbsolutePath |
||
44 | */ |
||
45 | private $configFilePath; |
||
46 | |||
47 | /** |
||
48 | * @var array |
||
49 | */ |
||
50 | private $optionRules = [ |
||
51 | 'c::', |
||
52 | 'd::', |
||
53 | 'config::', |
||
54 | 'debug::' |
||
55 | ]; |
||
56 | |||
57 | |||
58 | /** |
||
59 | * @param Context $context |
||
60 | * @param Stdio $stdio |
||
61 | */ |
||
62 | public function __construct(Context $context, Stdio $stdio) |
||
67 | |||
68 | /** |
||
69 | * @return int |
||
70 | */ |
||
71 | public function __invoke() |
||
81 | |||
82 | /** |
||
83 | * @throws \Eloquent\Pathogen\Exception\NonRelativePathException |
||
84 | */ |
||
85 | private function prepare() |
||
101 | |||
102 | /** |
||
103 | * @return int |
||
104 | */ |
||
105 | private function performAction() |
||
115 | |||
116 | /** |
||
117 | * @param PrintableException $exception |
||
118 | * @return int |
||
119 | */ |
||
120 | private function failed(PrintableException $exception) |
||
125 | |||
126 | private function configurationFile() |
||
143 | |||
144 | /** |
||
145 | * @return ReportEntity |
||
146 | */ |
||
147 | private function createReport() |
||
157 | |||
158 | /** |
||
159 | * @return int |
||
160 | */ |
||
161 | private function makeReport() |
||
168 | |||
169 | /** |
||
170 | * @return int |
||
171 | */ |
||
172 | private function sendReport() |
||
181 | |||
182 | } |
||
183 |