ClientException::clientNotFound()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 1
1
<?php
2
3
namespace As3\Modlr\Search;
4
5
use As3\Modlr\Exception\AbstractHttpException;
6
7
/**
8
 * Search client exceptions.
9
 *
10
 * @author Jacob Bare <[email protected]>
11
 */
12
class ClientException extends AbstractHttpException
13
{
14
    public static function clientNotFound($key)
15
    {
16
        return new self(
17
            sprintf(
18
                'Unable to handle search operations. No search client found for type "%s"',
19
                $key
20
            ),
21
            500,
22
            __FUNCTION__
23
        );
24
    }
25
}
26