Completed
Pull Request — master (#33)
by Clayton
06:45
created

CachedService   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A call() 0 6 1
1
<?php
2
3
namespace BrightComponents\Services\Traits;
4
5
trait CachedService
6
{
7
    /**
8
     * Respond to service call.
9
     *
10
     * @param  array  $parameters
11
     *
12
     * @return mixed
13
     */
14
    public static function call(...$parameters)
15
    {
16
        $decorator = resolve(static::class);
17
18
        return $decorator->cache(...$parameters);
19
    }
20
}
21