1 | <?php |
||
10 | class TdbmFluidTable |
||
11 | { |
||
12 | /** |
||
13 | * @var FluidSchema|TdbmFluidSchema |
||
14 | */ |
||
15 | private $schema; |
||
16 | /** |
||
17 | * @var FluidTable |
||
18 | */ |
||
19 | private $fluidTable; |
||
20 | /** |
||
21 | * @var NamingStrategyInterface |
||
22 | */ |
||
23 | private $namingStrategy; |
||
24 | |||
25 | /** |
||
26 | * @var array<string, TdbmFluidColumn> |
||
27 | */ |
||
28 | private $tdbmFluidColumns = []; |
||
29 | |||
30 | public function __construct(TdbmFluidSchema $schema, FluidTable $fluidTable, NamingStrategyInterface $namingStrategy) |
||
36 | |||
37 | public function column(string $name): TdbmFluidColumn |
||
44 | |||
45 | public function index(array $columnNames): TdbmFluidTable |
||
50 | |||
51 | public function unique(array $columnNames): TdbmFluidTable |
||
56 | |||
57 | public function primaryKey(array $columnNames, ?string $indexName = null): TdbmFluidTable |
||
62 | |||
63 | public function id(): TdbmFluidTable |
||
68 | |||
69 | public function uuid(string $version = 'v4'): TdbmFluidTable |
||
79 | |||
80 | public function timestamps(): TdbmFluidTable |
||
85 | |||
86 | /** |
||
87 | * @throws FluidSchemaException |
||
88 | */ |
||
89 | public function extends(string $tableName): TdbmFluidTable |
||
94 | |||
95 | /** |
||
96 | * Adds a "Bean" annotation to the table. |
||
97 | */ |
||
98 | public function customBeanName(string $beanName): TdbmFluidTable |
||
103 | |||
104 | /** |
||
105 | * Adds a "Type" annotation. |
||
106 | */ |
||
107 | public function graphqlType(): TdbmFluidTable |
||
112 | |||
113 | private function getComment(): Comment |
||
120 | |||
121 | private function saveComment(Comment $comment): self |
||
126 | |||
127 | public function addAnnotation(string $annotation, string $content = '', bool $replaceExisting = true): self |
||
133 | |||
134 | public function getDbalTable(): Table |
||
138 | } |
||
139 |