Skip to content

\Einvoicing\Attachment

getId()

Get attachment ID

public getId(): \Einvoicing\Identifier|null

Returns


setId()

Set attachment ID

public setId($id: \Einvoicing\Identifier|null): \Einvoicing\Attachment

Parameters

Returns


getDescription()

Get description

public getDescription(): string|null

Returns

  • string|null — Attachment description

setDescription()

Set description

public setDescription($description: string|null): \Einvoicing\Attachment

Parameters

  • $description: string|null — Attachment description

Returns


hasExternalUrl()

Has external URL

public hasExternalUrl(): bool

Returns

  • bool — Whether this attachment has an external URL or not

getExternalUrl()

Get external URL

public getExternalUrl(): string|null

Returns

  • string|null — Attachment external URL

setExternalUrl()

Set external URL

public setExternalUrl($externalUrl: string|null): \Einvoicing\Attachment

Parameters

  • $externalUrl: string|null — Attachment external URL

Returns


getFilename()

Get filename

public getFilename(): string|null

Returns

  • string|null — Attachment filename

setFilename()

Set filename

public setFilename($filename: string|null): \Einvoicing\Attachment

Parameters

  • $filename: string|null — Attachment filename

Returns


getMimeCode()

Get mime code

public getMimeCode(): string|null

Returns

  • string|null — Attachment mime code

setMimeCode()

Set mime code

public setMimeCode($mimeCode: string|null): \Einvoicing\Attachment

Parameters

  • $mimeCode: string|null — Attachment mime code

Returns


hasContents()

Has embedded contents

public hasContents(): bool

Returns

  • bool — Whether this attachment has embedded contents or not

getContents()

Get embedded contents

public getContents(): string|null

Returns

  • string|null — Attachment contents

setContents()

Set embedded contents

public setContents($content: string|null): \Einvoicing\Attachment

Parameters

  • $content: string|null — Attachment contents

Returns