| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class DebugService |
||
| 11 | { |
||
| 12 | const LINUX_LOG_PATH = '/var/log/gameap-daemon'; |
||
| 13 | const WINDOWS_LOG_PATH = 'C:/gameap/daemon/logs'; |
||
| 14 | |||
| 15 | /** @var GdaemonFiles */ |
||
| 16 | private $gdaemonFiles; |
||
| 17 | |||
| 18 | public function __construct(GdaemonFiles $gdaemonFiles) |
||
| 19 | { |
||
| 20 | $this->gdaemonFiles = $gdaemonFiles; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function downloadLogs(DedicatedServer $dedicatedServer): string |
||
| 32 | } |
||
| 33 | |||
| 34 | private function downloadFiles(DedicatedServer $dedicatedServer, $path): string |
||
| 58 |