Code Duplication    Length = 16-16 lines in 2 locations

sources/GenericCollections/Exceptions/ContainerDoesNotAllowNullException.php 1 location

@@ 3-18 (lines=16) @@
1
<?php namespace GenericCollections\Exceptions;
2
3
class ContainerDoesNotAllowNullException extends GenericCollectionsException
4
{
5
    /**
6
     * ContainerDoesNotAllowNullException constructor.
7
     *
8
     * @param string $classType
9
     * @param string $objectName
10
     * @param int $code
11
     * @param \Exception|null $previous
12
     */
13
    public function __construct($classType, $objectName, $code = 0, \Exception $previous = null)
14
    {
15
        $message = "The $classType $objectName does not allow null";
16
        parent::__construct($message, $code, $previous);
17
    }
18
}
19

sources/GenericCollections/Exceptions/ContainerNotUniqueMemberException.php 1 location

@@ 3-18 (lines=16) @@
1
<?php namespace GenericCollections\Exceptions;
2
3
class ContainerNotUniqueMemberException extends GenericCollectionsException
4
{
5
    /**
6
     * ContainerNotUniqueMemberException constructor.
7
     *
8
     * @param string $classType
9
     * @param string $objectName
10
     * @param int $code
11
     * @param \Exception|null $previous
12
     */
13
    public function __construct($classType, $objectName, $code = 0, \Exception $previous = null)
14
    {
15
        $message = "The $classType $objectName must contain unique members";
16
        parent::__construct($message, $code, $previous);
17
    }
18
}
19