Completed
Pull Request — master (#1)
by Adam
05:22 queued 03:01
created

HandlerException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A invalidHandler() 0 6 1
1
<?php
2
3
namespace Equip\Queue\Exception;
4
5
use Exception;
6
7
class HandlerException extends Exception
8
{
9
    /**
10
     * @param string $handler
11
     *
12
     * @return static
13
     */
14
    public static function invalidHandler($handler)
15
    {
16
        return new static(
17
            sprintf('The handler for `%s` is invalid.', $handler)
18
        );
19
    }
20
}
21