Completed
Push — Exceptions ( bd05bd )
by Josh
03:16
created

PrematureEndOfData::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php declare(strict_types=1);
2
3
/**
4
* @package   s9e\Bencode
5
* @copyright Copyright (c) 2014-2020 The s9e authors
6
* @license   http://www.opensource.org/licenses/mit-license.php The MIT License
7
*/
8
namespace s9e\Bencode\Exceptions;
9
10
class PrematureEndOfData extends DecodingException
11
{
12 17
	public function __construct(int $offset, string $message = 'Premature end of data')
13
	{
14 17
		parent::__construct($offset, $message);
15
	}
16
}