API reference / Quittio \ Core \ Data
Note
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Note · Source
Invoice note (BG-1).
Properties#
| Property | Type | Description |
|---|---|---|
$content readonly | string | |
$subjectCode readonly | NoteSubjectCode|RawCode|null |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(
string $content,
NoteSubjectCode|RawCode|null $subjectCode = null,
)| Parameter | Type | Description |
|---|---|---|
$content | string | |
$subjectCode | NoteSubjectCode|RawCode|null = null |
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