__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace SilverStripe\GridFieldAddOns;
4
5
use SilverStripe\GridFieldAddOns\GridFieldUserColumns;
6
use SilverStripe\Forms\GridField\GridFieldConfig_RelationEditor;
7
8
class GridFieldConfig_ExtendedRelationEditor extends GridFieldConfig_RelationEditor
9
{
10
11
    function __construct($itemsPerPage = null)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
12
    {
13
        parent::__construct($itemsPerPage);
14
        $this->addComponent(new GridFieldUserColumns());
15
    }
16
}
17