Total Complexity | 7 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class Standard implements Iface |
||
21 | { |
||
22 | private array $values; |
||
23 | |||
24 | |||
25 | /** |
||
26 | * Initializes the message object |
||
27 | * |
||
28 | * @param array $values Associative list of key/value pairs |
||
29 | */ |
||
30 | public function __construct( array $values ) |
||
31 | { |
||
32 | $this->values = $values; |
||
33 | } |
||
34 | |||
35 | |||
36 | /** |
||
37 | * Returns the message body |
||
38 | * |
||
39 | * @return string Message body |
||
40 | */ |
||
41 | public function getBody() : string |
||
44 | } |
||
45 | |||
46 | |||
47 | /** |
||
48 | * Returns the message ID |
||
49 | * |
||
50 | * @return integer|null Message ID |
||
51 | */ |
||
52 | public function getId() : ?string |
||
55 | } |
||
56 | |||
57 | |||
58 | /** |
||
59 | * Returns the message body |
||
60 | * |
||
61 | * @return string Message body |
||
62 | */ |
||
63 | public function __toString() : string |
||
68 |