SortableColumn::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
namespace musa11971\SortRequest;
4
5
use musa11971\SortRequest\Support\Foundation\Contracts\Sorter;
6
7
class SortableColumn
8
{
9
    public $name;
10
    public $sorter;
11
12
    /**
13
     * @param string $name
14
     * @param Sorter $sorter
15
     */
16
    public function __construct($name, $sorter)
17
    {
18
        $this->name = $name;
19
        $this->sorter = $sorter;
20
    }
21
}