Row::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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