| Total Complexity | 2 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class ClientState |
||
| 13 | { |
||
| 14 | public $type; |
||
| 15 | public $paused; |
||
| 16 | public $stoppable; |
||
| 17 | public $scriptId; |
||
| 18 | public $machineId; |
||
| 19 | public $scriptConfig; |
||
| 20 | public $proxy; |
||
| 21 | public $credentials; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * ClientState constructor. |
||
| 25 | * @param $type |
||
| 26 | * @param $paused |
||
| 27 | * @param $stoppable |
||
| 28 | * @param $scriptId |
||
| 29 | * @param $machineId |
||
| 30 | * @param $scriptConfig |
||
| 31 | * @param $proxy |
||
| 32 | * @param $credentials |
||
| 33 | */ |
||
| 34 | private function __construct(string $type, bool $paused, bool $stoppable, string $scriptId, string $machineId, ?array $scriptConfig, ?array $proxy, ?array $credentials) |
||
| 35 | { |
||
| 36 | $this->type = $type; |
||
| 37 | $this->paused = $paused; |
||
| 38 | $this->stoppable = $stoppable; |
||
| 39 | $this->scriptId = $scriptId; |
||
| 40 | $this->machineId = $machineId; |
||
| 41 | $this->scriptConfig = $scriptConfig; |
||
| 42 | $this->proxy = $proxy; |
||
| 43 | $this->credentials = $credentials; |
||
| 44 | } |
||
| 45 | |||
| 46 | public static function create(array $state){ |
||
| 56 | ); |
||
| 57 | } |
||
| 60 | } |