1 | <?php |
||
13 | class RowProcessor |
||
14 | { |
||
15 | /** |
||
16 | * @var mixed |
||
17 | */ |
||
18 | private $data; |
||
19 | |||
20 | /** |
||
21 | * @var mixed |
||
22 | */ |
||
23 | private $row; |
||
24 | |||
25 | /** |
||
26 | * @param mixed $data |
||
27 | * @param mixed $row |
||
28 | */ |
||
29 | public function __construct($data, $row) |
||
34 | |||
35 | /** |
||
36 | * Process DT RowId and Class value. |
||
37 | * |
||
38 | * @param string $attribute |
||
39 | * @param string|callable $template |
||
40 | * @return $this |
||
41 | */ |
||
42 | public function rowValue($attribute, $template) |
||
54 | |||
55 | /** |
||
56 | * Process DT Row Data and Attr. |
||
57 | * |
||
58 | * @param string $attribute |
||
59 | * @param array $template |
||
60 | * @return $this |
||
61 | */ |
||
62 | public function rowData($attribute, array $template) |
||
73 | |||
74 | /** |
||
75 | * @return mixed |
||
76 | */ |
||
77 | public function getData() |
||
81 | } |
||
82 |