| Conditions | 2 | 
| Paths | 1 | 
| Total Lines | 16 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 14 | public function boot() | ||
| 15 |     { | ||
| 16 | $this->app->when(NetGsmChannel::class) | ||
| 17 | ->needs(NetGsmClient::class) | ||
| 18 |             ->give(function () { | ||
| 19 |                 $config = config('services.netgsm'); | ||
|  | |||
| 20 | |||
| 21 |                 if (is_null($config)) { | ||
| 22 | throw InvalidConfiguration::configurationNotSet(); | ||
| 23 | } | ||
| 24 | |||
| 25 | return new NetGsmClient( | ||
| 26 | new Client(), | ||
| 27 | $config['user_code'], | ||
| 28 | $config['secret'], | ||
| 29 | $config['msg_header'] | ||
| 30 | ); | ||
| 41 |