SubscriptionEnum   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php declare(strict_types=1);
2
3
namespace Yokai\EnumBundle\Tests\Fixtures;
4
5
use Symfony\Contracts\Translation\TranslatorInterface;
6
use Yokai\EnumBundle\ConfigurableTranslatedEnum;
7
8
/**
9
 * @author Yann Eugoné <[email protected]>
10
 */
11
class SubscriptionEnum extends ConfigurableTranslatedEnum
12
{
13
    /**
14
     * @inheritDoc
15
     */
16
    public function __construct(TranslatorInterface $translator)
17
    {
18
        parent::__construct(
19
            $translator,
20
            'choice.subscription.%s',
21
            'subscription',
22
            ['none', 'daily', 'weekly', 'monthly']
23
        );
24
    }
25
}
26