Completed
Pull Request — master (#28)
by Maxime
03:40
created

TooBigFrameException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/**
3
 * This file is a part of Woketo package.
4
 *
5
 * (c) Ci-tron <[email protected]>
6
 *
7
 * For the full license, take a look to the LICENSE file
8
 * on the root directory of this project
9
 */
10
11
namespace Nekland\Woketo\Exception\Frame;
12
13
use Exception;
14
use Nekland\Woketo\Exception\LimitationException;
15
16
class TooBigFrameException extends LimitationException
17
{
18
    private $maxLength;
19
20
    public function __construct($maxLength, $message = 'The frame is too big to be processed.')
21
    {
22
        parent::__construct($message, null, null);
23
        $this->maxLength = $maxLength;
24
    }
25
26
    public function getMaxLength()
27
    {
28
        return $this->maxLength;
29
    }
30
}
31