| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 36 | public function __construct($token, $server_id, $host, Client $client = null) { |
|
| 22 | |||
| 23 | 36 | if (!$client instanceof Client) { |
|
| 24 | 27 | $client = new Client(); |
|
| 25 | 27 | } |
|
| 26 | |||
| 27 | 36 | $this->client = $client; |
|
| 28 | 36 | $this->token = $token; |
|
| 29 | 36 | $this->server_id = $server_id; |
|
| 30 | 36 | $this->host = $host; |
|
| 31 | } |
||
| 32 | } |