Completed
Pull Request — master (#28)
by Daniel
02:29
created

ScalarCell::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\Grid\View\Cell;
6
7
use Psi\Component\Grid\ColumnInterface;
8
use Psi\Component\Grid\CellInterface;
9
10
class ScalarCell implements CellInterface
11
{
12
    private $value;
13
    private $variant;
14
15
    public function __construct(string $variant = null, $value)
16
    {
17
        $this->value = $value;
18
        $this->variant = $variant;
19
    }
20
21
    public function getValue()
22
    {
23
        return $this->value;
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function getVariant()
30
    {
31
        return $this->variant;
32
    }
33
}
34