API reference / Quittio \ Core \ Data \ Lines
ItemAttribute
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Lines\ItemAttribute · Source
Item attribute (BG-32), e.g. colour, size, vehicle identification number.
Properties#
| Property | Type | Description |
|---|---|---|
$name readonly | string | |
$value readonly | string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(string $name, string $value)| Parameter | Type | Description |
|---|---|---|
$name | string | |
$value | string |
with()#
public function with(array<string, mixed> $changes): staticReturns a copy with the given properties replaced.
| Parameter | Type | Description |
|---|---|---|
$changes | array<string, mixed> |
- Returns
static