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

Cell   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 24
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getContext() 0 4 1
A getTemplate() 0 4 1
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