| 1 | <?php |
||
| 5 | class Index implements DatabaseObjectInterface |
||
| 6 | { |
||
| 7 | private $columns = array(); |
||
| 8 | private $table; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Constructor. |
||
| 12 | * |
||
| 13 | * @param array|string $columns Columns of index. |
||
| 14 | * @param Table $table Table instance. |
||
| 15 | */ |
||
| 16 | public function __construct($columns, Table $table) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get index name. |
||
| 24 | * |
||
| 25 | * @return string Index name. |
||
| 26 | */ |
||
| 27 | public function getName() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get column names of index. |
||
| 34 | * |
||
| 35 | * @return string[] Array of Column instances. |
||
| 36 | */ |
||
| 37 | public function getColumns() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get table instance. |
||
| 44 | * |
||
| 45 | * @return Table Table instance. |
||
| 46 | */ |
||
| 47 | public function getTable() |
||
| 51 | |||
| 52 | } |
||
| 53 |