| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | abstract class GdaemonCommandsService |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var GdaemonCommands |
||
| 12 | */ |
||
| 13 | protected $gdaemonCommands; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * GdaemonCommandsService constructor. |
||
| 17 | * |
||
| 18 | * @param GdaemonCommands $gdaemonCommands |
||
| 19 | */ |
||
| 20 | public function __construct(GdaemonCommands $gdaemonCommands) |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Setting up gdaemon commands configuration |
||
| 27 | * |
||
| 28 | * @param int |
||
| 29 | */ |
||
| 30 | protected function configureGdaemon($dsId) |
||
| 31 | { |
||
| 32 | $dedicatedServer = DedicatedServer::findOrFail($dsId); |
||
| 33 | |||
| 34 | $this->gdaemonCommands->setConfig( |
||
| 35 | $dedicatedServer->gdaemonSettings() |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $command |
||
| 41 | * @param array $codes |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | protected function replaceShortCodes(string $command, array $codes) |
||
| 51 | } |
||
| 52 | } |