| Total Complexity | 7 |
| Total Lines | 72 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class NonMimePart extends MessagePart |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Returns true. |
||
| 23 | * |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | 1 | public function isTextPart() |
|
| 27 | { |
||
| 28 | 1 | return true; |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Returns text/plain |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | 1 | public function getContentType() |
|
| 37 | { |
||
| 38 | 1 | return 'text/plain'; |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Returns ISO-8859-1 |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 1 | public function getCharset() |
|
| 47 | { |
||
| 48 | 1 | return 'ISO-8859-1'; |
|
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Returns 'inline'. |
||
| 53 | * |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 1 | public function getContentDisposition() |
|
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Returns '7bit'. |
||
| 63 | * |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | 1 | public function getContentTransferEncoding() |
|
| 67 | { |
||
| 68 | 1 | return '7bit'; |
|
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Returns false. |
||
| 73 | * |
||
| 74 | * @return bool |
||
| 75 | */ |
||
| 76 | 1 | public function isMime() |
|
| 79 | } |
||
| 80 | |||
| 81 | /** |
||
| 82 | * Returns the Content ID of the part. |
||
| 83 | * |
||
| 84 | * NonMimeParts do not have a Content ID, and so this simply returns null. |
||
| 85 | * |
||
| 86 | * @return string|null |
||
| 87 | */ |
||
| 88 | public function getContentId() |
||
| 93 |