API reference / Quittio \ Core \ Data \ Attachments
Attachment
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Attachments\Attachment · Source
Additional supporting document (BG-24).
Properties#
| Property | Type | Description |
|---|---|---|
$content readonly | ?string | |
$description readonly | ?string | |
$externalUri readonly | ?string | |
$filename readonly | ?string | |
$id readonly | string | |
$mimeType readonly | ?MimeType |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->size() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(
string $id,
?string $description = null,
?string $externalUri = null,
?string $content = null,
?MimeType $mimeType = null,
?string $filename = null,
)| Parameter | Type | Description |
|---|---|---|
$id | string | |
$description | ?string = null | |
$externalUri | ?string = null | |
$content | ?string = null | |
$mimeType | ?MimeType = null | |
$filename | ?string = null |
size()#
public function size(): int- Returns
int
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