SerializersServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php namespace Nwidart\LaravelBroadway\Broadway;
2
3
use Broadway\Serializer\SimpleInterfaceSerializer;
4
use Illuminate\Support\ServiceProvider;
5
6
class SerializersServiceProvider extends ServiceProvider
7
{
8
    public function register()
9
    {
10
        $this->app->bind(\Broadway\Serializer\Serializer::class, function () {
11
            return new SimpleInterfaceSerializer();
12
        });
13
    }
14
}
15