1 | <?php |
||
16 | class Swift_Mime_ContentEncoder_NativeQpContentEncoder implements Swift_Mime_ContentEncoder |
||
|
|||
17 | { |
||
18 | /** |
||
19 | * @var null|string |
||
20 | */ |
||
21 | private $charset; |
||
22 | |||
23 | /** |
||
24 | * @param null|string $charset |
||
25 | */ |
||
26 | 64 | public function __construct($charset = null) |
|
30 | |||
31 | /** |
||
32 | * Notify this observer that the entity's charset has changed. |
||
33 | * |
||
34 | * @param string $charset |
||
35 | */ |
||
36 | 1 | public function charsetChanged($charset) |
|
40 | |||
41 | /** |
||
42 | * Encode $in to $out. |
||
43 | * |
||
44 | * @param Swift_OutputByteStream $os to read from |
||
45 | * @param Swift_InputByteStream $is to write to |
||
46 | * @param int $firstLineOffset |
||
47 | * @param int $maxLineLength 0 indicates the default length for this encoding |
||
48 | * |
||
49 | * @throws RuntimeException |
||
50 | */ |
||
51 | 1 | public function encodeByteStream(Swift_OutputByteStream $os, Swift_InputByteStream $is, $firstLineOffset = 0, $maxLineLength = 0) |
|
66 | |||
67 | /** |
||
68 | * Get the MIME name of this content encoding scheme. |
||
69 | * |
||
70 | * @return string |
||
71 | */ |
||
72 | 1 | public function getName() |
|
76 | |||
77 | /** |
||
78 | * Encode a given string to produce an encoded string. |
||
79 | * |
||
80 | * @param string $string |
||
81 | * @param int $firstLineOffset if first line needs to be shorter |
||
82 | * @param int $maxLineLength 0 indicates the default length for this encoding |
||
83 | * |
||
84 | * @throws RuntimeException |
||
85 | * |
||
86 | * @return string |
||
87 | */ |
||
88 | 12 | public function encodeString($string, $firstLineOffset = 0, $maxLineLength = 0) |
|
97 | |||
98 | /** |
||
99 | * Make sure CRLF is correct and HT/SPACE are in valid places. |
||
100 | * |
||
101 | * @param string $string |
||
102 | * |
||
103 | * @return string |
||
104 | */ |
||
105 | 11 | protected function _standardize($string) |
|
123 | } |
||
124 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.