Total Complexity | 9 |
Total Lines | 71 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
4 | class Message |
||
5 | { |
||
6 | /** |
||
7 | * [protected description] |
||
8 | * @var [type] |
||
|
|||
9 | */ |
||
10 | protected $message; |
||
11 | |||
12 | public function __construct($jsonString) |
||
15 | } |
||
16 | /** |
||
17 | * [__get description] |
||
18 | * @date 2019-11-23 |
||
19 | * @param string $key [description] |
||
20 | * @return [type] [description] |
||
21 | */ |
||
22 | public function __get(string $key):string |
||
25 | } |
||
26 | /** |
||
27 | * [header description] |
||
28 | * @date 2019-11-22 |
||
29 | * @param string $key [description] |
||
30 | * @return string|null [description] |
||
31 | */ |
||
32 | public function header(string $key):?string |
||
40 | } |
||
41 | /** |
||
42 | * [isMultiPart description] |
||
43 | * @date 2019-11-23 |
||
44 | * @return bool [description] |
||
45 | */ |
||
46 | public function isMultiPart():bool |
||
47 | { |
||
48 | return isset($this->message->payload->parts); |
||
49 | } |
||
50 | /** |
||
51 | * [getSize description] |
||
52 | * @date 2019-11-23 |
||
53 | * @return int [description] |
||
54 | */ |
||
55 | public function getSize():int |
||
58 | } |
||
59 | /** |
||
60 | * [body description] |
||
61 | * @date 2019-11-23 |
||
62 | * @param integer $partId [description] |
||
63 | * @return [type] [description] |
||
64 | */ |
||
65 | public function body(int $partId=0) |
||
77 |