| 1 | <?php |
||
| 10 | class Engine |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var FilesystemInterface |
||
| 14 | */ |
||
| 15 | protected $filesystem; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var EncoderInterface |
||
| 19 | */ |
||
| 20 | protected $encoder; |
||
| 21 | |||
| 22 | 15 | public function __construct(FilesystemInterface $filesystem, EncoderInterface $encoder) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Get the Filesystem instance. |
||
| 30 | * |
||
| 31 | * @return FilesystemInterface |
||
| 32 | */ |
||
| 33 | 14 | public function getFilesystem() |
|
| 37 | |||
| 38 | |||
| 39 | /** |
||
| 40 | * Get the EncoderInterface instance. |
||
| 41 | * |
||
| 42 | * @return EncoderInterface |
||
| 43 | */ |
||
| 44 | 14 | public function getEncoder() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * Create a new DocumentStore. |
||
| 51 | * |
||
| 52 | * @param string $namespace |
||
| 53 | * @return DocumentStore |
||
| 54 | */ |
||
| 55 | 2 | public function createDocumentStore($namespace) |
|
| 59 | |||
| 60 | 1 | public function dropCollection($collection) |
|
| 64 | |||
| 65 | 1 | public function createCollection($collection) |
|
| 71 | } |
||
| 72 |