1 | <?php |
||
16 | class MongoGridFSCursor extends MongoCursor |
||
1 ignored issue
–
show
|
|||
17 | { |
||
18 | /** |
||
19 | * @static |
||
20 | * @var $slaveOkay |
||
21 | */ |
||
22 | public static $slaveOkay; |
||
23 | |||
24 | /** |
||
25 | * @link http://php.net/manual/en/class.mongogridfscursor.php#mongogridfscursor.props.gridfs |
||
26 | * @var $gridfs |
||
27 | */ |
||
28 | protected $gridfs; |
||
29 | |||
30 | /** |
||
31 | * Create a new cursor |
||
32 | * |
||
33 | * @link http://php.net/manual/en/mongogridfscursor.construct.php |
||
34 | * @param MongoGridFS $gridfs Related GridFS collection |
||
35 | * @param MongoClient $connection Database connection |
||
36 | * @param string $ns Full name of database and collection |
||
37 | * @param array $query Database query |
||
38 | * @param array $fields Fields to return |
||
39 | * @return MongoGridFSCursor Returns the new cursor |
||
40 | */ |
||
41 | public function __construct(MongoGridFS $gridfs, MongoClient $connection, $ns, array $query = array(), array $fields = array()) |
||
46 | |||
47 | /** |
||
48 | * Returns the current file |
||
49 | * |
||
50 | * @link http://php.net/manual/en/mongogridfscursor.current.php |
||
51 | * @return MongoGridFSFile The current file |
||
52 | */ |
||
53 | public function current() |
||
58 | |||
59 | /** |
||
60 | * Returns the current result's filename |
||
61 | * |
||
62 | * @link http://php.net/manual/en/mongogridfscursor.key.php |
||
63 | * @return string The current results filename |
||
64 | */ |
||
65 | public function key() |
||
70 | } |
||
71 |
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.