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

Header::isSorted()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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