Zum Inhalt springen

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#

PropertyTypeDescription
$content readonly?string
$description readonly?string
$externalUri readonly?string
$filename readonly?string
$id readonlystring
$mimeType readonly?MimeType

Methods#

MethodDescription
->__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,
)
ParameterTypeDescription
$idstring
$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): static

Returns a copy with the given properties replaced.

ParameterTypeDescription
$changesarray<string, mixed>
Returns
static

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.