RowDataAwareTrait::setRowData()   A
last analyzed

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 1
1
<?php
2
/**
3
 * @company MTE Telecom, Ltd.
4
 * @author Roman Malashin <[email protected]>
5
 */
6
7
namespace Nnx\DataGrid;
8
9
use ArrayAccess;
10
11
/**
12
 * Trait RowDataAwareTrait
13
 * @package Nnx\DataGrid
14
 */
15
trait RowDataAwareTrait
16
{
17
    /**
18
     * @var array|ArrayAccess
19
     */
20
    protected $rowData;
21
22
    /**
23
     * Возвращает набор данных строки выбранной посредством adapter'a
24
     * @return array|ArrayAccess
25
     */
26
    public function getRowData()
27
    {
28
        return $this->rowData;
29
    }
30
31
    /**
32
     * Устанавливает набор данных строки выбранных посредством adapter'a
33
     * @param array|ArrayAccess $rowData
34
     * @return $this
35
     */
36
    public function setRowData($rowData)
37
    {
38
        $this->rowData = $rowData;
39
        return $this;
40
    }
41
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
42