FieldConstructor   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 0
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFieldsWithDefault() 0 4 1
1
<?php
2
3
4
namespace Arrilot\BitrixMigrations\Constructors;
5
6
7
trait FieldConstructor
8
{
9
    /** @var array */
10
    public $fields = [];
11
12
    public static $defaultFields = [];
13
14
    /**
15
     * Получить итоговые настройки полей
16
     */
17
    public function getFieldsWithDefault()
18
    {
19
        return array_merge((array)static::$defaultFields[get_called_class()], $this->fields);
20
    }
21
}