TableServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
ccs 1
cts 1
cp 1
crap 1
rs 10
1
<?php
2
3
namespace App\Providers;
4
5
use App\Services\GuestTableService;
6
use App\Services\ReservationTableService;
7
use App\Services\RoomTableService;
8
use Illuminate\Support\ServiceProvider;
9
10
class TableServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Bootstrap the application services.
14
     *
15
     * @return void
16
     */
17 106
    public function boot()
18
    {
19
        //
20 106
    }
21
22
    /**
23
     * Register the application services.
24
     *
25
     * @return void
26
     */
27 106
    public function register()
28
    {
29
        $this->app->bind('App\Services\GuestTableService', function () {
30 23
            return new GuestTableService();
31 106
        });
32
        $this->app->bind('App\Services\ReservationTableService', function () {
33 39
            return new ReservationTableService();
34 106
        });
35
        $this->app->bind('App\Services\RoomTableService', function () {
36 38
            return new RoomTableService();
37 106
        });
38 106
    }
39
}
40