Completed
Pull Request — master (#34)
by Clayton
01:24
created

CachedService::call()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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