Completed
Push — develop ( cba78f...09bcdb )
by Nicolas
12:47
created

JobbersTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A Jobbers() 0 7 2
1
<?php
2
3
namespace devtransition\jobbers;
4
5
trait JobbersTrait
6
{
7
8
    /**
9
     * @return $this
10
     */
11
    public function Jobbers()
12
    {
13
        if (!Jobbers::isInit()) {
14
            throw new \Exception("Jobbers not initialized");
15
        }
16
        return new Proxy($this);
17
    }
18
19
}