A mime email header line consisting of a name and value.
The header object provides methods to access the header's name, raw value, and also its parsed value. The parsed value will depend on the type of header and in some cases may be broken up into other parts (for example email addresses in an address header, or parameters in a parameter header).
- author Zaahid Bateson
Methods |
public abstract __toString() : string Returns the string representation of the header. i.e.: '<HeaderName>: <RawValue>'
|
public abstract getAllParts() : array Returns an array of all IHeaderPart objects the header's value has been parsed into, including any CommentParts.
|
public abstract getComments() : array Returns an array of comments parsed from the header. If there are no comments in the header, an empty array is returned.
|
public abstract getName() : string Returns the name of the header.
|
public abstract getParts() : array Returns an array of IHeaderPart objects the header's value has been parsed into, excluding any {@see \ZBateson\MailMimeParser\Header\Part\CommentPart}s. To retrieve all parts /including/ CommentParts, {@see \getAllParts()}.
|
public abstract getRawValue() : string Returns the raw value of the header.
|
public abstract getValue() : ?string Returns the parsed 'value' of the header. For headers that contain multiple parts, like address headers (To, From) or parameter headers (Content-Type), the 'value' is the value of the first parsed part that isn't a comment.
|