SkiDataTooLongDataException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
/**
4
 * This file is part of the skidata-library package.
5
 *
6
 * (c) 2017 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\SkiData\Exception;
13
14
/**
15
 * SkiData too long data exception.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Library\SkiData\Exception
19
 */
20
class SkiDataTooLongDataException extends AbstractSkiDataException {
21
22
    /**
23
     * Constructor.
24
     *
25
     * @param string $value The value.
26
     * @param integer $length The length.
27
     */
28
    public function __construct($value, $length) {
29
        parent::__construct(sprintf("The data \"%s\" exceeds the length \"%d\" allowed", $value, $length));
30
    }
31
32
}
33