Code Duplication    Length = 18-18 lines in 2 locations

Exception/InvalidBarCodeException.php 1 location

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

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