Completed
Push — master ( ca39d5...12bd24 )
by Danny
10:03
created

Logs::configureProperties()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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