FieldConstructor::getFieldsWithDefault()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
}