Completed
Push — master ( 3f5763...5f0b1e )
by
unknown
11:44
created

PrivilegeCategoryProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A getRolePrivilegeCategory() 0 4 1
1
<?php
2
3
namespace OroCRM\Bundle\CampaignBundle\Provider;
4
5
use Oro\Bundle\UserBundle\Model\PrivilegeCategory;
6
use Oro\Bundle\UserBundle\Provider\PrivilegeCategoryProviderInterface;
7
8
class PrivilegeCategoryProvider implements PrivilegeCategoryProviderInterface
9
{
10
    const NAME = 'marketing';
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function getName()
15
    {
16
        return self::NAME;
17
    }
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function getRolePrivilegeCategory()
23
    {
24
        return new PrivilegeCategory(self::NAME, 'orocrm.campaign.privilege.category.marketing.label', true, 5);
25
    }
26
}
27