Prefetch   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 21
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A configureProperties() 0 10 1
1
<?php
2
3
namespace MyOnlineStore\Bundle\RabbitMqManagerBundle\Configuration\Consumer\Section;
4
5
use Supervisor\Configuration\Section\Base;
6
use Symfony\Component\OptionsResolver\OptionsResolver;
7
8
final class Prefetch extends Base
9
{
10
    /**
11
     * @inheritdoc
12
     */
13
    protected $name = 'prefetch';
14
15
    /**
16
     * @inheritdoc
17
     */
18 1
    protected function configureProperties(OptionsResolver $resolver)
19
    {
20
        $resolver
21 1
            ->setDefined('count')
22 1
            ->setAllowedTypes('count', 'int');
23
24
        $resolver
25 1
            ->setDefined('global')
26 1
            ->setAllowedTypes('global', 'bool');
27 1
    }
28
}
29