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

HeaderNotFoundException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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