ReceiptCode
class ReceiptCode implements Stringable (View source)
This class represents a receipt code identified by code, prefix, ymd and number. The receipt code is generated from these properties.
Properties
| $ymd | Year month day of the receipt code |
||
| $number | Number of the receipt code |
||
| $code | Receipt code |
Methods
code(string $code)
Parse code and set code, prefix, ymd and number.
string
nextCode()
Get next code.
static ReceiptCode
of(string|null $code = null, string|null $prefix = 'PO')
Create a new instance of ReceiptCode.
string
__toString()
Get the string representation of the object.
Details
ReceiptCode
code(string $code)
Parse code and set code, prefix, ymd and number.
string
nextCode()
Get next code.
static ReceiptCode
of(string|null $code = null, string|null $prefix = 'PO')
Create a new instance of ReceiptCode.
string
__toString()
Get the string representation of the object.