1 | <?php |
||
16 | abstract class AbstractCommand extends Command |
||
17 | { |
||
18 | public const DB = 'db'; |
||
19 | public const COLLECTION = 'collection'; |
||
20 | public const INDEX = 'index'; |
||
21 | |||
22 | protected function configure() |
||
32 | |||
33 | abstract protected function processDocumentCollection(SchemaManager $sm, string $document, ?int $maxTimeMs, ?WriteConcern $writeConcern); |
||
34 | |||
35 | abstract protected function processCollection(SchemaManager $sm, ?int $maxTimeMs, ?WriteConcern $writeConcern); |
||
36 | |||
37 | abstract protected function processDocumentDb(SchemaManager $sm, string $document, ?int $maxTimeMs, ?WriteConcern $writeConcern); |
||
38 | |||
39 | abstract protected function processDb(SchemaManager $sm, ?int $maxTimeMs, ?WriteConcern $writeConcern); |
||
40 | |||
41 | abstract protected function processDocumentIndex(SchemaManager $sm, string $document, ?int $maxTimeMs, ?WriteConcern $writeConcern); |
||
42 | |||
43 | abstract protected function processIndex(SchemaManager $sm, ?int $maxTimeMs, ?WriteConcern $writeConcern); |
||
44 | |||
45 | /** |
||
46 | * @return SchemaManager |
||
47 | */ |
||
48 | protected function getSchemaManager() |
||
52 | |||
53 | /** |
||
54 | * @return DocumentManager |
||
55 | */ |
||
56 | protected function getDocumentManager() |
||
60 | |||
61 | /** |
||
62 | * @return ClassMetadataFactory |
||
63 | */ |
||
64 | protected function getMetadataFactory() |
||
68 | |||
69 | protected function getMaxTimeMsFromInput(InputInterface $input) : ?int |
||
75 | |||
76 | protected function getWriteConcernFromInput(InputInterface $input) : ?WriteConcern |
||
90 | } |
||
91 |