1 | <?php |
||
8 | class Commands |
||
9 | { |
||
10 | /** |
||
11 | * @var Service |
||
12 | */ |
||
13 | private $healthService; |
||
14 | |||
15 | /** |
||
16 | * Commands constructor. |
||
17 | * |
||
18 | * @param Service $healthService |
||
19 | */ |
||
20 | 10 | public function __construct(HealthService $healthService) |
|
24 | |||
25 | /** |
||
26 | * @param $rows |
||
27 | * @return \Illuminate\Support\Collection|\IlluminateAgnostic\Arr\Support\Collection|\IlluminateAgnostic\Collection\Support\Collection|\IlluminateAgnostic\Str\Support\Collection|\Tightenco\Collect\Support\Collection|\Vanilla\Support\Collection |
||
28 | * @throws \Exception |
||
29 | */ |
||
30 | 1 | protected function getTargetsFomResources($resources) |
|
42 | |||
43 | 1 | private function normalizeMessage($message) |
|
55 | |||
56 | 1 | public function panel(Command $command = null) |
|
74 | |||
75 | 1 | public function check(Command $command = null) |
|
98 | |||
99 | /** |
||
100 | * Format input to textual table. |
||
101 | * |
||
102 | * @param Command|null $command |
||
103 | * @param $columns |
||
104 | * @param \Illuminate\Contracts\Support\Arrayable|array $rows |
||
105 | */ |
||
106 | 1 | private function table($command, $columns, $rows) |
|
112 | |||
113 | /** |
||
114 | * Write a string as information output. |
||
115 | * |
||
116 | * @param Command|null $command |
||
117 | * @param $string |
||
118 | */ |
||
119 | private function info($command, $string) |
||
125 | |||
126 | /** |
||
127 | * Write a string as information output. |
||
128 | * |
||
129 | * @param Command|null $command |
||
130 | * @param $string |
||
131 | */ |
||
132 | 1 | private function error($command, $string) |
|
138 | |||
139 | /** |
||
140 | * Write a string as information output. |
||
141 | * |
||
142 | * @param Command|null $command |
||
143 | * @param $string |
||
144 | */ |
||
145 | private function warn($command, $string) |
||
151 | } |
||
152 |