Passed
Push — master ( 9821c2...feb9ea )
by Roman
02:13
created

IncompatibleIterable::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
1
<?php
2
3
namespace kartavik\Collections\Exception;
4
5
use kartavik\Collections\Exception;
6
7
/**
8
 * Class IncompatibleIterable
9
 * @package kartavik\Collections\Exception
10
 */
11
class IncompatibleIterable extends \InvalidArgumentException implements Exception
12
{
13
    /** @var iterable */
14
    protected $arr;
15
16
    public function __construct(iterable $arr, string $message = '', int $code = 0, \Throwable $previous = null)
17
    {
18
        $this->arr = $arr;
19
20
        parent::__construct($message, $code, $previous);
21
    }
22
23
    public function getArr(): iterable
24
    {
25
        return $this->arr;
26
    }
27
}
28