Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | interface Swift_OutputByteStream |
||
|
|||
20 | { |
||
21 | /** |
||
22 | * Reads $length bytes from the stream into a string and moves the pointer |
||
23 | * through the stream by $length. |
||
24 | * |
||
25 | * If less bytes exist than are requested the remaining bytes are given instead. |
||
26 | * If no bytes are remaining at all, boolean false is returned. |
||
27 | * |
||
28 | * @param int $length |
||
29 | * |
||
30 | * @throws Swift_IoException |
||
31 | * |
||
32 | * @return string|bool |
||
33 | */ |
||
34 | public function read($length); |
||
35 | |||
36 | /** |
||
37 | * Move the internal read pointer to $byteOffset in the stream. |
||
38 | * |
||
39 | * @param int $byteOffset |
||
40 | * |
||
41 | * @throws Swift_IoException |
||
42 | * |
||
43 | * @return bool |
||
44 | */ |
||
45 | public function setReadPointer($byteOffset); |
||
46 | } |
||
47 |
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.