Passed
Push — fix-phpbench-ci ( 32b959 )
by Michael
03:04
created

Secure   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 11
rs 10
c 0
b 0
f 0
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