1 | <?php |
||
6 | abstract class AbstractSchemaSource implements SchemaSourceInterface |
||
7 | { |
||
8 | /** |
||
9 | * Default schema name |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $schema; |
||
13 | |||
14 | |||
15 | |||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | 1 | public function getColumns($table) |
|
23 | |||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 1 | public function getTableInformation($table) |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 1 | public function getTables() |
|
41 | |||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 1 | public function hasTable($table) |
|
51 | |||
52 | /** |
||
53 | * Check whether a table parameter is valid and exists |
||
54 | * |
||
55 | * @throws Exception\InvalidArgumentException |
||
56 | * @throws Exception\ErrorException |
||
57 | * @throws Exception\ExceptionInterface |
||
58 | * @throws Exception\TableNotFoundException |
||
59 | * |
||
60 | * @param string $table |
||
61 | * @return AbstractSource |
||
62 | */ |
||
63 | protected function validateTable($table) |
||
71 | |||
72 | |||
73 | /** |
||
74 | * Check whether a schema parameter is valid |
||
75 | * |
||
76 | * @throws Exception\InvalidArgumentException |
||
77 | |||
78 | * @param string $schema |
||
79 | * @return AbstractSource |
||
80 | */ |
||
81 | 23 | protected function validateSchema($schema) |
|
88 | |||
89 | /** |
||
90 | * Set default schema |
||
91 | * |
||
92 | * @throws Exception\InvalidArgumentException |
||
93 | * @param string $schema |
||
94 | * @return AbstractSource |
||
95 | */ |
||
96 | 23 | protected function setDefaultSchema($schema) |
|
102 | |||
103 | /** |
||
104 | * |
||
105 | * @param string $table |
||
106 | * @throws Exception\InvalidArgumentException |
||
107 | */ |
||
108 | 16 | protected function checkTableArgument($table = null) |
|
116 | } |
||
117 |