Completed
Push — master ( 3b7290...73d268 )
by
unknown
11:56
created

SetRestrictedModeToChannelIntegrations   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A up() 0 4 1
1
<?php
2
3
namespace OroCRM\Bundle\ChannelBundle\Migrations\Schema\v1_6;
4
5
use Doctrine\DBAL\Schema\Schema;
6
7
use Oro\Bundle\IntegrationBundle\Entity\Channel;
8
use Oro\Bundle\MigrationBundle\Migration\Migration;
9
use Oro\Bundle\MigrationBundle\Migration\QueryBag;
10
11
class SetRestrictedModeToChannelIntegrations implements Migration
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function up(Schema $schema, QueryBag $queries)
17
    {
18
        $queries->addQuery(new UpdateChannelIntegrationsMode(Channel::EDIT_MODE_RESTRICTED));
19
    }
20
}
21