Sku
class Sku implements Stringable (View source)
This class represents a SKU identified by code and prefix. The SKU is generated from these properties.
Methods
string
sku()
Get the SKU.
string
__toString()
Get the string representation of the SKU.
Details
string
sku()
Get the SKU.
static Sku
of(string|int|array $code, string|null $prefix = null)
Create a new SKU instance.
string
__toString()
Get the string representation of the SKU.