Passed
Pull Request — 1.x (#9)
by Marko
03:23
created

AbstractField   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSettings() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace KunicMarko\SonataAnnotationBundle\Annotation;
6
7
/**
8
 * @author Marko Kunic <[email protected]>
9
 */
10
abstract class AbstractField implements AnnotationInterface
11
{
12
    /**
13
     * @var string
14
     */
15
    public $type;
16
17
    /**
18
     * @var array
19
     */
20
    public $fieldDescriptionOptions = [];
21
22
    public function getSettings(): array
23
    {
24
        return [
25
            $this->type,
26
            $this->fieldDescriptionOptions
27
        ];
28
    }
29
}
30