| 1 | <?php |
||
| 5 | class Xhgui_Profiles |
||
|
|
|||
| 6 | { |
||
| 7 | protected $_collection; |
||
| 8 | |||
| 9 | protected $_mapper; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var MongoId lastProfilingId |
||
| 13 | */ |
||
| 14 | private static $lastProfilingId; |
||
| 15 | |||
| 16 | public function __construct(MongoDb $db) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Insert a profile run. |
||
| 23 | * |
||
| 24 | * Does unchecked inserts. |
||
| 25 | * |
||
| 26 | * @param array $profile The profile data to save. |
||
| 27 | */ |
||
| 28 | public function insert($profile) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Return profiling ID |
||
| 36 | * @return MongoId lastProfilingId |
||
| 37 | */ |
||
| 38 | public static function getLastProfilingId() { |
||
| 44 | } |
||
| 45 |
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.