Dumplie\SharedKernel\Domain\Product\SKU::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $code )
$code string
    public function __construct(string $code)
    {
        if (empty($code)) {
            throw InvalidArgumentException::emptySku();
        }
        $this->code = $code;
    }