Passed
Push — master ( 27ca4d...8d618a )
by Ondřej
02:45 queued 10s
created

ClosedCursorException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
namespace Ivory\Exception;
4
5
/**
6
 * Exception thrown when working on a closed cursor.
7
 */
8
class ClosedCursorException extends \RuntimeException
9
{
10
    public function __construct(string $cursorName)
11
    {
12
        parent::__construct("Cursor `$cursorName` is closed");
13
    }
14
}
15