| 1 | <?php |
||
| 9 | class Database |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The storage engine. |
||
| 13 | * |
||
| 14 | * @var Engine |
||
| 15 | */ |
||
| 16 | protected $engine; |
||
| 17 | |||
| 18 | protected $parser; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * An array of the registered collections. |
||
| 22 | * |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $collections; |
||
| 26 | |||
| 27 | public function __construct(Engine $engine) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Select an existing collection or create a new one. |
||
| 36 | * |
||
| 37 | * @param string $name |
||
| 38 | * |
||
| 39 | * @return Collection |
||
| 40 | */ |
||
| 41 | public function collection($name) |
||
| 45 | |||
| 46 | public function getOrCreateCollection($name) |
||
| 54 | |||
| 55 | public function createCollection($name) |
||
| 61 | |||
| 62 | public function dropCollection($name) |
||
| 69 | |||
| 70 | public function getParser() |
||
| 74 | |||
| 75 | protected function initializeParser() |
||
| 80 | } |
||
| 81 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.