ResolverException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
buildMessage() 0 1 ?
1
<?php
2
3
/*
4
 * This file is part of the JVal package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace JVal\Exception;
11
12
/**
13
 * Base class for URI resolution exception.
14
 */
15
abstract class ResolverException extends \Exception
16
{
17
    /**
18
     * Constructor.
19
     *
20
     * @param array $parameters The exception message parameters
21
     */
22 22
    public function __construct(array $parameters = [])
23
    {
24 22
        parent::__construct($this->buildMessage($parameters));
25 22
    }
26
27
    /**
28
     * Builds the exception message.
29
     *
30
     * @param array $parameters
31
     */
32
    abstract protected function buildMessage(array $parameters);
33
}
34