Code Duplication    Length = 18-18 lines in 2 locations

Exception/InvalidVendorNumberException.php 1 location

@@ 9-26 (lines=18) @@
6
7
use Throwable;
8
9
class InvalidVendorNumberException extends Exception
10
{
11
    protected $productNumbers;
12
13
    public function __construct(string $message = '', array $productNumbers, int $code = 0, Throwable $previous = null)
14
    {
15
        $this->productNumbers = $productNumbers;
16
        parent::__construct($message, $code, $previous);
17
    }
18
19
    /**
20
     * @return array
21
     */
22
    public function getProductNumbers(): array
23
    {
24
        return $this->productNumbers;
25
    }
26
}
27

Exception/InvalidBarCodeException.php 1 location

@@ 9-26 (lines=18) @@
6
7
use Throwable;
8
9
class InvalidBarCodeException extends Exception
10
{
11
    protected $productNumbers;
12
13
    public function __construct(string $message = '', array $productNumbers, int $code = 0, Throwable $previous = null)
14
    {
15
        $this->productNumbers = $productNumbers;
16
        parent::__construct($message, $code, $previous);
17
    }
18
19
    /**
20
     * @return array
21
     */
22
    public function getProductNumbers(): array
23
    {
24
        return $this->productNumbers;
25
    }
26
}
27