Completed
Push — master ( 12bd24...1184b8 )
by Danny
03:40
created

Queue::configureProperties()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
crap 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
class Queue extends Base
9
{
10
    /**
11
     * @inheritdoc
12
     */
13
    protected $name = 'queuesettings';
14
15
    /**
16
     * @inheritdoc
17
     */
18 1
    protected function configureProperties(OptionsResolver $resolver)
19
    {
20
        $resolver
21 1
            ->setDefined('routingkey')
22 1
            ->setAllowedTypes('routingkey', 'string');
23 1
    }
24
}
25