API reference / Quittio \ Core \ Data \ Party
Contact
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Party\Contact · Source
Contact (BG-6 seller: BT-41/42/43, BG-9 buyer: BT-56/57/58).
Properties#
| Property | Type | Description |
|---|---|---|
$email readonly | ?string | |
$name readonly | ?string | |
$phone readonly | ?string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(
?string $name = null,
?string $phone = null,
?string $email = null,
)| Parameter | Type | Description |
|---|---|---|
$name | ?string = null | |
$phone | ?string = null | |
$email | ?string = 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