1 | <?php |
||
28 | abstract class AbstractCommand extends Command |
||
29 | { |
||
30 | const DB = 'db'; |
||
31 | const COLLECTION = 'collection'; |
||
32 | const INDEX = 'index'; |
||
33 | |||
34 | abstract protected function processDocumentCollection(SchemaManager $sm, $document); |
||
35 | |||
36 | abstract protected function processCollection(SchemaManager $sm); |
||
37 | |||
38 | abstract protected function processDocumentDb(SchemaManager $sm, $document); |
||
39 | |||
40 | abstract protected function processDb(SchemaManager $sm); |
||
41 | |||
42 | abstract protected function processDocumentIndex(SchemaManager $sm, $document); |
||
43 | |||
44 | abstract protected function processIndex(SchemaManager $sm); |
||
45 | |||
46 | /** |
||
47 | * @return SchemaManager |
||
48 | */ |
||
49 | protected function getSchemaManager() |
||
53 | |||
54 | /** |
||
55 | * @return \Doctrine\ODM\MongoDB\DocumentManager |
||
56 | */ |
||
57 | protected function getDocumentManager() |
||
61 | |||
62 | /** |
||
63 | * @return \Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory |
||
64 | */ |
||
65 | protected function getMetadataFactory() |
||
69 | } |
||
70 |