Completed
Pull Request — master (#5)
by Daniel
01:51
created

Header   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 28
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getName() 0 4 1
A isSorted() 0 4 1
A isSortAscending() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\Grid;
6
7
class Header
8
{
9
    private $name;
10
    private $sorted;
11
    private $isSortAscending;
12
13
    public function __construct(string $name, bool $sorted, bool $isSortAscending)
14
    {
15
        $this->name = $name;
16
        $this->sorted = $sorted;
17
        $this->isSortAscending = $isSortAscending;
18
    }
19
20
    public function getName() 
21
    {
22
        return $this->name;
23
    }
24
25
    public function isSorted(): bool
26
    {
27
        return $this->sorted;
28
    }
29
30
    public function isSortAscending(): bool
31
    {
32
        return $this->isSortAscending;
33
    }
34
}
35