PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / trunk
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress vtrunk
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / vendor / zbateson / mail-mime-parser / src / Header / IHeader.php

IHeader.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress trunk, at vendor/zbateson/mail-mime-parser/src/Header/IHeader.php

64 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This file is part of the ZBateson\MailMimeParser project.
4 *
5 * @license http://opensource.org/licenses/bsd-license.php BSD
6 */
7
8 namespace ZBateson\MailMimeParser\Header;
9
10 /**
11 * A mime email header line consisting of a name and value.
12 *
13 * The header object provides methods to access the header's name, raw value,
14 * and also its parsed value. The parsed value will depend on the type of
15 * header and in some cases may be broken up into other parts (for example email
16 * addresses in an address header, or parameters in a parameter header).
17 *
18 * @author Zaahid Bateson
19 */
20 interface IHeader
21 {
22 /**
23 * Returns an array of IHeaderPart objects the header's value has been
24 * parsed into.
25 *
26 * @return IHeaderPart[] The array of parts.
27 */
28 public function getParts() : array;
29
30 /**
31 * Returns the parsed 'value' of the header.
32 *
33 * For headers that contain multiple parts, like address headers (To, From)
34 * or parameter headers (Content-Type), the 'value' is the value of the
35 * first parsed part.
36 *
37 * @return string The value
38 */
39 public function getValue() : ?string;
40
41 /**
42 * Returns the raw value of the header.
43 *
44 * @return string The raw value.
45 */
46 public function getRawValue() : string;
47
48 /**
49 * Returns the name of the header.
50 *
51 * @return string The name.
52 */
53 public function getName() : string;
54
55 /**
56 * Returns the string representation of the header.
57 *
58 * i.e.: '<HeaderName>: <RawValue>'
59 *
60 * @return string The string representation.
61 */
62 public function __toString() : string;
63 }
64