Total Complexity | 5 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class DatabaseSchema { |
||
11 | private $entityManager; |
||
12 | |||
13 | public function __construct( EntityManager $entityManager ) { |
||
14 | $this->entityManager = $entityManager; |
||
15 | } |
||
16 | |||
17 | public function createSchema() { |
||
19 | } |
||
20 | |||
21 | public function dropSchema(): void { |
||
22 | $this->getSchemaTool()->dropSchema( $this->getClassMetaData() ); |
||
23 | } |
||
24 | |||
25 | private function getSchemaTool(): SchemaTool { |
||
26 | return new SchemaTool( $this->entityManager ); |
||
27 | } |
||
28 | |||
29 | private function getClassMetaData(): array { |
||
31 | } |
||
32 | } |