MySqlSchemaManager   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 3
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createSchema() 0 12 2
1
<?php
2
3
namespace Rey\BitrixMigrations\Driver\Schema;
4
5
use Doctrine\DBAL\Schema\MySqlSchemaManager as DoctrineMySqlSchemaManager;
6
use Doctrine\DBAL\Schema\Schema;
7
8
/**
9
 * Надстройка над стандартным DBAL MySqlSchemaManager для ускорения работы
10
 * за счет отключения построения всей схемы бд
11
 */
12
class MySqlSchemaManager extends DoctrineMySqlSchemaManager
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function createSchema()
18
    {
19
        $sequences = array();
20
21
        if ($this->_platform->supportsSequences()) {
22
            $sequences = $this->listSequences();
23
        }
24
25
        $tables = array();
26
27
        return new Schema($tables, $sequences, $this->createSchemaConfig());
28
    }
29
}
30