Completed
Push — master ( a9154f...38f43b )
by Daniel
02:17
created

Cell::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\Grid\View;
6
7
class Cell
8
{
9
    public $value;
10
    public $parameters = [];
11
12
    private $context;
13
    private $template;
14
15
    public function __construct($context, string $template)
16
    {
17
        $this->context = $context;
18
        $this->template = $template;
19
    }
20
21
    public function getContext()
22
    {
23
        return $this->context;
24
    }
25
26
    public function getTemplate(): string
27
    {
28
        return $this->template;
29
    }
30
}
31