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

JobbersTrait::Jobbers()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 2
eloc 4
nc 2
nop 0
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
}