PlaySmsServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace CoreProc\NotificationChannels\PlaySms;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class PlaySmsServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Register the application services.
11
     */
12
    public function register()
13
    {
14
        $this->app->bind(PlaySmsClient::class, function () {
15
            return new PlaySmsClient(
16
                config('services.playsms.base_url'),
17
                config('services.playsms.username'),
18
                config('services.playsms.api_key')
19
            );
20
        });
21
    }
22
}
23