PreconditionFailed   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace Meek\Http\ClientError;
4
5
use Meek\Http\ClientError;
6
7
/**
8
 * Exception modeling the '412 Precondition Failed' HTTP status response.
9
 *
10
 * @see https://tools.ietf.org/html/rfc7232#section-4.2
11
 * @author Nathan Bishop <[email protected]> (https://nathanbishop.name)
12
 * @copyright 2016 Nathan Bishop
13
 * @license The MIT license.
14
 */
15
class PreconditionFailed extends ClientError
16
{
17
    /**
18
     * Construct a new 'Precondition Failed' exception.
19
     *
20
     * @param string[][] $headers Additional headers associated with the exception.
21
     */
22 2
    public function __construct(array $headers = [])
23
    {
24 2
        parent::__construct(412, 'Precondition Failed', $headers);
25 2
    }
26
}
27