1 | <?php namespace Anomaly\Streams\Platform\Ui\Table\Component\Row; |
||
16 | class Row implements RowInterface |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * The row key. |
||
21 | * |
||
22 | * @var null |
||
23 | */ |
||
24 | protected $key = null; |
||
25 | |||
26 | /** |
||
27 | * The row entry. |
||
28 | * |
||
29 | * @var mixed |
||
30 | */ |
||
31 | protected $entry = null; |
||
32 | |||
33 | /** |
||
34 | * The row table. |
||
35 | * |
||
36 | * @var null|Table |
||
37 | */ |
||
38 | protected $table = null; |
||
39 | |||
40 | /** |
||
41 | * The row columns. |
||
42 | * |
||
43 | * @var Collection |
||
44 | */ |
||
45 | protected $columns; |
||
46 | |||
47 | /** |
||
48 | * The row buttons. |
||
49 | * |
||
50 | * @var ButtonCollection |
||
51 | */ |
||
52 | protected $buttons; |
||
53 | |||
54 | /** |
||
55 | * Get the key. |
||
56 | * |
||
57 | * @return null |
||
58 | */ |
||
59 | public function getKey() |
||
63 | |||
64 | /** |
||
65 | * Set the key. |
||
66 | * |
||
67 | * @param $key |
||
68 | * @return $this |
||
69 | */ |
||
70 | public function setKey($key) |
||
76 | |||
77 | /** |
||
78 | * Set the row buttons. |
||
79 | * |
||
80 | * @param $buttons |
||
81 | * @return $this |
||
82 | */ |
||
83 | public function setButtons($buttons) |
||
89 | |||
90 | /** |
||
91 | * Get the row buttons. |
||
92 | * |
||
93 | * @return mixed |
||
94 | */ |
||
95 | public function getButtons() |
||
99 | |||
100 | /** |
||
101 | * Set the row columns. |
||
102 | * |
||
103 | * @param Collection $columns |
||
104 | * @return $this |
||
105 | */ |
||
106 | public function setColumns(Collection $columns) |
||
112 | |||
113 | /** |
||
114 | * Get the row columns. |
||
115 | * |
||
116 | * @return mixed |
||
117 | */ |
||
118 | public function getColumns() |
||
122 | |||
123 | /** |
||
124 | * Get the table. |
||
125 | * |
||
126 | * @return Table|null |
||
127 | */ |
||
128 | public function getTable() |
||
132 | |||
133 | /** |
||
134 | * Set the table. |
||
135 | * |
||
136 | * @param Table $table |
||
137 | * @return $this |
||
138 | */ |
||
139 | public function setTable(Table $table) |
||
145 | |||
146 | /** |
||
147 | * Set the row entry. |
||
148 | * |
||
149 | * @param $entry |
||
150 | * @return $this |
||
151 | */ |
||
152 | public function setEntry($entry) |
||
158 | |||
159 | /** |
||
160 | * Get the row entry. |
||
161 | * |
||
162 | * @return mixed |
||
163 | */ |
||
164 | public function getEntry() |
||
168 | } |
||
169 |