MessagePart
extends DataPart
in package
Tags
Table of Contents
Properties
- $body : mixed
- $charset : mixed
- $cid : mixed
- $disposition : string|null
- $encoders : mixed
- $encoding : mixed
- $filename : mixed
- $handle : mixed
- $headers : mixed
- $mediaType : mixed
- $message : mixed
- $mimeTypes : mixed
- $name : mixed
- $seekable : mixed
- $subtype : mixed
Methods
- __construct() : mixed
- __destruct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- asDebugString() : string
- asInline() : $this
- bodyToIterable() : iterable<string|int, mixed>
- bodyToString() : string
- fromPath() : self
- getBody() : string
- getContentId() : string
- getHeaders() : Headers
- getMediaSubtype() : string
- getMediaType() : string
- getPreparedHeaders() : Headers
- hasContentId() : bool
- setDisposition() : $this
- setName() : $this
- Sets the name of the file (used by FormDataPart).
- toIterable() : iterable<string|int, mixed>
- toString() : string
- chooseEncoding() : string
- generateContentId() : string
- getEncoder() : ContentEncoderInterface
Properties
$body
private
mixed
$body
$charset
private
mixed
$charset
$cid
private
mixed
$cid
$disposition
private
string|null
$disposition
$encoders
private
static mixed
$encoders
= []
$encoding
private
mixed
$encoding
$filename
private
mixed
$filename
$handle
private
mixed
$handle
$headers
private
mixed
$headers
$mediaType
private
mixed
$mediaType
$message
private
mixed
$message
$mimeTypes
private
static mixed
$mimeTypes
$name
private
mixed
$name
$seekable
private
mixed
$seekable
$subtype
private
mixed
$subtype
Methods
__construct()
public
__construct(RawMessage $message) : mixed
Parameters
- $message : RawMessage
__destruct()
public
__destruct() : mixed
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : mixed
asDebugString()
public
asDebugString() : string
Return values
stringasInline()
public
asInline() : $this
Return values
$thisbodyToIterable()
public
bodyToIterable() : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>bodyToString()
public
bodyToString() : string
Return values
stringfromPath()
public
static fromPath(string $path[, string|null $name = null ][, string|null $contentType = null ]) : self
Parameters
- $path : string
- $name : string|null = null
- $contentType : string|null = null
Return values
selfgetBody()
public
getBody() : string
Return values
stringgetContentId()
public
getContentId() : string
Return values
stringgetHeaders()
public
getHeaders() : Headers
Return values
HeadersgetMediaSubtype()
public
getMediaSubtype() : string
Return values
stringgetMediaType()
public
getMediaType() : string
Return values
stringgetPreparedHeaders()
public
getPreparedHeaders() : Headers
Return values
HeadershasContentId()
public
hasContentId() : bool
Return values
boolsetDisposition()
public
setDisposition(string $disposition) : $this
Parameters
- $disposition : string
-
one of attachment, inline, or form-data
Return values
$thissetName()
Sets the name of the file (used by FormDataPart).
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thistoIterable()
public
toIterable() : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>toString()
public
toString() : string
Return values
stringchooseEncoding()
private
chooseEncoding() : string
Return values
stringgenerateContentId()
private
generateContentId() : string
Return values
stringgetEncoder()
private
getEncoder() : ContentEncoderInterface