Part
Less than 1 minute
Part
- Full name:
\Hazaar\Mail\Mime\Part
- This class implements:
\JsonSerializable
Properties
headers
protected string[] $headers
content
protected string $content
crlf
protected string $crlf
Methods
__construct
public __construct(string $content = null, string $content_type = null, string[] $headers = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$content | string | |
$content_type | string | |
$headers | string[] |
setHeaders
public setHeaders(string[] $headers): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$headers | string[] |
setHeader
public setHeader(string $header, string $content): void
Parameters:
Parameter | Type | Description |
---|---|---|
$header | string | |
$content | string |
getHeader
public getHeader(string $header): string
Parameters:
Parameter | Type | Description |
---|---|---|
$header | string |
setContentType
public setContentType(string $type): void
Parameters:
Parameter | Type | Description |
---|---|---|
$type | string |
getContentType
public getContentType(): string
setDescription
public setDescription(string $text): void
Parameters:
Parameter | Type | Description |
---|---|---|
$text | string |
setContent
public setContent(string $content): void
Parameters:
Parameter | Type | Description |
---|---|---|
$content | string |
getContent
public getContent(): string
detect_break
public detect_break(string $content, string $default = "
"): string
Parameters:
Parameter | Type | Description |
---|---|---|
$content | string | |
$default | string |
encode
public encode(int $width_limit = 76): string
Parameters:
Parameter | Type | Description |
---|---|---|
$width_limit | int |
decode
public static decode(string $data): \Hazaar\Mail\Mime\Part
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$data | string |
jsonSerialize
public jsonSerialize(): mixed
Automatically generated on 2024-11-14