InvalidConfigurationException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A invalidFinalizeRangeValue() 0 4 1
1
<?php
2
/*
3
 * This file is part of the Borobudur-Config package.
4
 *
5
 * (c) Hexacodelabs <http://hexacodelabs.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Borobudur\Config\Exception;
12
13
/**
14
 * @author      Iqbal Maulana <[email protected]>
15
 * @created     8/10/15
16
 */
17
class InvalidConfigurationException extends \Exception
18
{
19
    /**
20
     * Invalid finalize range value.
21
     *
22
     * @param string    $type
23
     * @param string    $path
24
     * @param int|float $typeValue
25
     * @param int|float $value
26
     *
27
     * @return InvalidConfigurationException
28
     */
29
    public static function invalidFinalizeRangeValue($type, $path, $typeValue, $value)
30
    {
31
        return new self(sprintf('%s value for "%s" is "%d", but got "%d".', $type, $path, $typeValue, $value));
32
    }
33
}
34