| 1 | <?php |
||
| 6 | class DatabaseManager |
||
| 7 | { |
||
| 8 | /** @var string */ |
||
| 9 | protected $databseUri; |
||
| 10 | |||
| 11 | /** @var string */ |
||
| 12 | protected $databaseName; |
||
| 13 | |||
| 14 | /** @var \MongoClient */ |
||
| 15 | protected $dbClient; |
||
| 16 | |||
| 17 | public function __construct( |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Connect to DB |
||
| 27 | * |
||
| 28 | * @throws \MongoConnectionException |
||
| 29 | * @return \MongoClient |
||
| 30 | */ |
||
| 31 | private function getClient() |
||
| 39 | |||
| 40 | private function find($collection, $filter = [], $sort = [], $limit = 1, $offset = 0) |
||
| 50 | |||
| 51 | public function findOne($collection, $id) |
||
| 60 | |||
| 61 | public function findAll($collection) |
||
| 66 | } |
||
| 67 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.