Completed
Push — master ( 3ec9c1...244937 )
by Max
02:44
created

AppServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 9
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
1
<?php
2
3
namespace NFLScores\Providers;
4
5
use DateTime;
6
use DateTimeZone;
7
use Illuminate\Support\ServiceProvider;
8
use NFLScores\Http\NFLHttpClient;
9
use NFLScores\Models\NFL;
10
11
class AppServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * Register any application services.
15
     */
16
    public function register(): void
17
    {
18
        $this->app->bind(NFL::class, function () {
19
            return new NFL(new NFLHttpClient(), new DateTime('now', new DateTimeZone('US/Eastern')));
20
        });
21
    }
22
}
23