Completed
Push — master ( 63d559...0e0340 )
by Mahmoud
03:20
created

CallableTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
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 App\Ship\Engine\Traits;
4
5
use Illuminate\Support\Facades\App;
6
7
/**
8
 * Class CallableTrait.
9
 *
10
 * @author  Mahmoud Zalt <[email protected]>
11
 */
12
trait CallableTrait
13
{
14
15
    /**
16
     * @param       $class
17
     * @param array $args
18
     *
19
     * @return  mixed
20
     */
21
    public function call($class, $args = [])
22
    {
23
        return App::make($class)->run(...$args);
24
    }
25
26
}
27