XmlCollection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace JMS\Serializer\Annotation;
6
7
abstract class XmlCollection implements SerializerAttribute
8
{
9
    use AnnotationUtilsTrait;
10
11
    /**
12
     * @var string
13
     */
14
    public $entry = 'entry';
15
16
    /**
17
     * @var bool
18
     */
19
    public $inline = false;
20
21
    /**
22
     * @var string|null
23
     */
24
    public $namespace = null;
25
26
    /**
27
     * @var bool
28
     */
29
    public $skipWhenEmpty = true;
30
31
    public function __construct(array $values = [], string $entry = 'entry', bool $inline = false, ?string $namespace = null, bool $skipWhenEmpty = true)
32
    {
33
        $this->loadAnnotationParameters(get_defined_vars());
34
    }
35
}
36