Secure::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
3
namespace Doctrine\Tests\Annotations\Fixtures\Annotation;
4
5
/** @Annotation */
6
class Secure
7
{
8
    private $roles;
9
10
    public function __construct(array $values)
11
    {
12
        if (is_string($values['value'])) {
13
            $values['value'] = [$values['value']];
14
        }
15
16
        $this->roles = $values['value'];
17
    }
18
}
19