InvalidValueException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 3
crap 1
1
<?php
2
/**
3
 * This file is part of the badams\GoogleUrl library
4
 *
5
 * @license http://opensource.org/licenses/MIT
6
 * @link https://github.com/badams/google-url
7
 * @package badams/google-url
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace badams\GoogleUrl\Exceptions;
14
15
class InvalidValueException extends GoogleUrlException
16
{
17
    /**
18
     * InvalidValueException constructor.
19
     * @param string $message
20
     * @param int $code
21
     * @param \Exception|null $previous
22
     */
23 3
    public function __construct($message = '', $code = 0, \Exception $previous = null)
24
    {
25 3
        parent::__construct('Invalid Parameter Value: '.$message, $code, $previous);
26 3
    }
27
}
28