1 | <?php |
||
6 | class Table |
||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | protected $name; |
||
12 | |||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $options; |
||
17 | |||
18 | /** |
||
19 | * @param string $name The table name |
||
20 | * @param array $options The creation options for this table |
||
21 | */ |
||
22 | public function __construct($name, array $options = []) |
||
31 | |||
32 | /** |
||
33 | * Sets the table name. |
||
34 | * |
||
35 | * @param string $name The name of the table |
||
36 | * @return \Phinx\Db\Table\Table |
||
37 | */ |
||
38 | public function setName($name) |
||
44 | |||
45 | /** |
||
46 | * Gets the table name. |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getName() |
||
54 | |||
55 | /** |
||
56 | * Gets the table options |
||
57 | * |
||
58 | * @return array |
||
59 | */ |
||
60 | public function getOptions() |
||
64 | |||
65 | /** |
||
66 | * Sets the table options |
||
67 | * |
||
68 | * @param array $options The options for the table creation |
||
69 | * @return void |
||
70 | */ |
||
71 | public function setOptions(array $options) |
||
75 | } |
||
76 |