Row   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 32
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRow() 0 4 1
A setParameters() 0 4 1
1
<?php
2
3
namespace Mouf\Utils\DataSource;
4
5
6
use Mouf\Utils\DataSource\Interfaces\RowInterface;
7
use Mouf\Utils\Value\ValueUtils;
8
9
class Row implements RowInterface
10
{
11
    /**
12
     * @var array
13
     */
14
    private $data;
15
16
    /**
17
     * Row constructor.
18
     * @param array<string,string>|array<string,ValueInterface> $data
19
     */
20
    public function __construct(array $data)
21
    {
22
        $this->data = $data;
23
    }
24
25
    /**
26
     * @return array
27
     */
28
    public function getRow()
29
    {
30
        return ValueUtils::val($this->data);
31
    }
32
33
    /**
34
     * @param array $params
35
     */
36
    public function setParameters(array $params)
37
    {
38
        // Do nothing here
39
    }
40
}