CallsServices   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A call() 0 4 1
1
<?php
2
3
namespace BrightComponents\Services\Traits;
4
5
use Illuminate\Container\Container;
6
use BrightComponents\Services\ServiceCaller;
7
8
trait CallsServices
9
{
10
    /**
11
     * Call a service.
12
     *
13
     * @param  string  $service
14
     * @param  mixed  ...$params
15
     *
16
     * @return mixed
17
     */
18
    public function call(string $service, ...$params)
19
    {
20
        return Container::getInstance()->make(ServiceCaller::class)->call($service, ...$params);
21
    }
22
}
23