Completed
Push — master ( 44b88c...ea2c59 )
by Pablo
03:18
created

InvalidCollectionObjectException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace PhpValueObjects\Collection\Exception;
4
5
class InvalidCollectionObjectException extends \Exception
6
{
7
    /**
8
     * InvalidCollectionObjectException constructor.
9
     * @param object $actual
10
     * @param string $expected
11
     */
12
    public function __construct($actual, $expected)
13
    {
14
        parent::__construct(
15
            sprintf('"%s" is not a valid object for collection. Expected "%s"', get_class($actual), $expected)
16
        );
17
    }
18
}
19