\Einvoicing\Attachment¶
getId()¶
Get attachment ID
public getId(): \Einvoicing\Identifier|null
Returns
\Einvoicing\Identifier|null— Attachment ID
setId()¶
Set attachment ID
public setId($id: \Einvoicing\Identifier|null): \Einvoicing\Attachment
Parameters
$id:\Einvoicing\Identifier|null— Attachment ID
Returns
\Einvoicing\Attachment— Attachment instance
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
\Einvoicing\Attachment— Attachment instance
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
\Einvoicing\Attachment— Attachment instance
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
\Einvoicing\Attachment— Attachment instance
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
\Einvoicing\Attachment— Attachment instance
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
\Einvoicing\Attachment— Attachment instance