1 | <?php |
||
3 | class Xhgui_Saver_Mongo implements Xhgui_Saver_Interface |
||
|
|||
4 | { |
||
5 | /** |
||
6 | * @var MongoCollection |
||
7 | */ |
||
8 | private $_collection; |
||
9 | |||
10 | /** |
||
11 | * @var MongoId lastProfilingId |
||
12 | */ |
||
13 | private static $lastProfilingId; |
||
14 | |||
15 | public function __construct(MongoCollection $collection) |
||
19 | |||
20 | public function save(array $data) |
||
26 | |||
27 | /** |
||
28 | * Return profiling ID |
||
29 | * @return MongoId lastProfilingId |
||
30 | */ |
||
31 | public static function getLastProfilingId() { |
||
37 | } |
||
38 |
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.