DataSource::getData()   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 0
1
<?php
2
3
namespace Mouf\Utils\DataSource;
4
5
6
use Mouf\Utils\DataSource\Interfaces\DataSourceInterface;
7
8
class DataSource implements DataSourceInterface
9
{
10
    /**
11
     * @var array[]
12
     */
13
    private $data;
14
15
    /**
16
     * Row constructor.
17
     * @param array $data
18
     */
19
    public function __construct(array $data)
20
    {
21
        $this->data = $data;
22
    }
23
24
    /**
25
     * @return array[]
26
     */
27
    public function getData()
28
    {
29
        return $this->data;
30
    }
31
32
    /**
33
     * @param array $params
34
     */
35
    public function setParameters(array $params)
36
    {
37
        // Do nothing here
38
    }
39
}