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

AbstractField::getSettings()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
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