1 | <?php |
||
9 | class TdbmFluidSchema |
||
10 | { |
||
11 | /** |
||
12 | * @var FluidSchema |
||
13 | */ |
||
14 | private $fluidSchema; |
||
15 | |||
16 | /** |
||
17 | * @var NamingStrategyInterface |
||
18 | */ |
||
19 | private $namingStrategy; |
||
20 | |||
21 | /** |
||
22 | * @var TdbmFluidTable[] |
||
23 | */ |
||
24 | private $tdbmFluidTables; |
||
25 | |||
26 | /** |
||
27 | * @param Schema $schema |
||
28 | * @param null|NamingStrategyInterface $namingStrategy |
||
29 | */ |
||
30 | public function __construct(Schema $schema, ?NamingStrategyInterface $namingStrategy = null) |
||
35 | |||
36 | public function table(string $name): TdbmFluidTable |
||
48 | |||
49 | /** |
||
50 | * Creates a table joining 2 other tables through a foreign key. |
||
51 | * |
||
52 | * @param string $table1 |
||
53 | * @param string $table2 |
||
54 | * @return TdbmFluidJunctionTableOptions |
||
55 | */ |
||
56 | public function junctionTable(string $table1, string $table2): TdbmFluidJunctionTableOptions |
||
63 | |||
64 | /** |
||
65 | * Returns the underlying schema. |
||
66 | * @return Schema |
||
67 | */ |
||
68 | public function getDbalSchema(): Schema |
||
72 | } |
||
73 |