Passed
Push — master ( 6b2101...ccd743 )
by Petr
04:05
created

RepositoryNotFound::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace AppBundle\Exception;
4
5
/**
6
 * @author Vehsamrak
7
 */
8
class RepositoryNotFound extends HttpDomainException
9
{
10
11
    /** {@inheritDoc} */
12
    public function __construct(string $repositoryName)
13
    {
14
        $message = sprintf('Repository "%s" was not found.', $repositoryName);
15
16
        parent::__construct($message);
17
    }
18
}
19