Completed
Push — master ( a6fe0f...b0c0c1 )
by Sebastian
02:05
created

HeaderNotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
namespace DjThossi\SmokeTestingPhp\Collection;
3
4
use DjThossi\SmokeTestingPhp\ValueObject\HeaderKey;
5
use Exception;
6
7
class HeaderNotFoundException extends Exception
8
{
9
    /**
10
     * @param HeaderKey $key
11
     */
12
    public function __construct(HeaderKey $key)
13
    {
14
        $this->message = sprintf(
15
            'Header with key "%s" not found',
16
            $key->asString()
17
        );
18
    }
19
}
20