1 | <?php |
||
19 | class MetadataInfo extends AbstractOptions |
||
20 | { |
||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $table = array(); |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $columns = array(); |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $foreignKeys = array(); |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $name; |
||
40 | |||
41 | /** |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public function getName() |
||
48 | |||
49 | /** |
||
50 | * @param mixed $name |
||
51 | */ |
||
52 | public function setName($name) |
||
56 | |||
57 | /** |
||
58 | * Returns foreign keys data |
||
59 | * |
||
60 | * @param string $key Key, if not provided, complete array will be returned |
||
61 | * @return array |
||
62 | */ |
||
63 | public function getForeignKeys($key = null) |
||
70 | |||
71 | /** |
||
72 | * @param array $foreignKeys |
||
73 | */ |
||
74 | public function setForeignKeys(array $foreignKeys) |
||
78 | |||
79 | /** |
||
80 | * Returns columns data |
||
81 | * |
||
82 | * @param string $key Key, if not provided, complete array will be returned |
||
83 | * @return array |
||
84 | */ |
||
85 | public function getColumns($key = null) |
||
92 | |||
93 | /** |
||
94 | * @param array $columns |
||
95 | */ |
||
96 | public function setColumns(array $columns) |
||
100 | |||
101 | /** |
||
102 | * Returns table data |
||
103 | * |
||
104 | * @param string $key Key, if not provided, complete array will be returned |
||
105 | * @return array |
||
106 | */ |
||
107 | public function getTable($key = null) |
||
114 | |||
115 | /** |
||
116 | * @param array $table |
||
117 | */ |
||
118 | public function setTable(array $table) |
||
122 | } |
||
123 |