invalidFinalizeRangeValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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