UnableToSeekException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Furious\Psr7\Exception;
6
7
use Throwable;
8
9
class UnableToSeekException extends RuntimeException
10
{
11
    public function __construct(int $offset, int $whence, $message = '', $code = 0, Throwable $previous = null)
12
    {
13
        parent::__construct($message, $code, $previous);
14
        if ($message === '') {
15
            $this->message = 'Unable to seek to stream position ' . $offset . ' with whence ' . var_export($whence, true);
16
        }
17
    }
18
}