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

HandlerException::invalidHandler()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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