| 1 | <?php |
||
| 11 | class Column |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | private $columns; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Column constructor. |
||
| 20 | * @param array $columns カラム名 |
||
| 21 | */ |
||
| 22 | 36 | public function __construct($columns = array()) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Add column |
||
| 29 | * @param string $column カラム名 |
||
| 30 | * @return $this |
||
| 31 | */ |
||
| 32 | 9 | public function add($column) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Delete column |
||
| 41 | * @param string $column カラム名 |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | 1 | public function delete($column) |
|
| 53 | |||
| 54 | /** |
||
| 55 | * Get column |
||
| 56 | * @return array カラム名 |
||
| 57 | */ |
||
| 58 | 25 | public function get() |
|
| 62 | } |
||
| 63 |