Completed
Push — master ( 05a043...a79f71 )
by Tim
15:11
created

SmartExclude::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace HDNET\Autoloader\Annotation;
6
7
/**
8
 * @Annotation
9
 * @Target({"CLASS"})
10
 */
11
class SmartExclude
12
{
13
    /**
14
     * @var array
15
     */
16
    public $excludes = [];
17
18
    /**
19
     * @throws \InvalidArgumentException
20
     */
21
    public function __construct(array $values)
22
    {
23
        if (\is_array($values['value'])) {
24
            $this->excludes = $values['value'];
25
        }
26
    }
27
}
28