TableServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 27
ccs 8
cts 8
cp 1
rs 10
c 2
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 2 1
A register() 0 10 1
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