forked from Tactics/TableBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ColumnInterface.php
53 lines (44 loc) · 1011 Bytes
/
ColumnInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
namespace Tactics\TableBundle;
interface ColumnInterface
{
/**
* Constructor.
*/
public function __construct($name, ColumnHeader $header, array $options = array(), $extensions = array());
/**
* Returns the name of the column
*
* @return String The name of the column.
*/
function getName();
/**
* Returns a the cell info of the given row
*
* @param array $row The current row.
*
* @return mixed The cell info of this column in the given row
*/
function getCell($row);
/**
* Returns the column type
*
* @return string The type of the column.
*/
function getType();
/**
* Returns a specific option
*
* @param string $name
*
* @return mixed
*/
function getOption($name);
/**
* Sets an option on the column
*
* @param string $name
* @param mixed $value
*/
function setOption($name, $value);
}