ParserException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 4
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/*
3
 * Copyright (c) 2015 Juan José Torroglosa Ramón
4
 *
5
 * This file is part of the Cliphar package.
6
 *
7
 * For the full copyright and license information, please view
8
 * the LICENSE file that was distributed with this source code.
9
 */
10
11
namespace Cliphar\InputDefinition\Exception;
12
13
class ParserException extends InputDefinitionParsingException
14
{
15
    public function __construct($reason, $tokenFound, $valueFound, $position)
16
    {
17
        parent::__construct("{$reason}. Token {$tokenFound} with value '{$valueFound}' found at pos {$position}");
18
    }
19
}