Completed
Push — master ( 165f6b...2c48ba )
by Matthew
07:36 queued 19s
created

VerifyTrait   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
B verifyGetJobArgs() 0 6 5
1
<?php
2
3
namespace Dtc\QueueBundle\Manager;
4
5
use Dtc\QueueBundle\Exception\UnsupportedException;
6
7
trait VerifyTrait
8
{
9
    /**
10
     * @param string|null $workerName
11
     * @param string|null $methodName
12
     * @param bool        $prioritize
13
     *
14
     * @throws UnsupportedException
15
     */
16 23
    protected function verifyGetJobArgs($workerName = null, $methodName = null, $prioritize = true)
17
    {
18 23
        if (null !== $workerName || null !== $methodName || (isset($this->maxPriority) && true !== $prioritize)) {
19 6
            throw new UnsupportedException('Unsupported');
20
        }
21 20
    }
22
}
23