1 | <?php |
||
13 | class Builder extends AbstractBuilder implements Fluent |
||
14 | { |
||
15 | use Traits\Fields; |
||
16 | use Traits\Dates; |
||
17 | use Traits\Aliases; |
||
18 | use Traits\Relations; |
||
19 | use Traits\Macroable; |
||
20 | use Traits\Queueable; |
||
21 | |||
22 | /** |
||
23 | * @param string|callable $name |
||
24 | * @param callable|null $callback |
||
25 | * |
||
26 | * @return Table |
||
27 | */ |
||
28 | public function table($name, callable $callback = null) |
||
46 | |||
47 | 1 | /** |
|
48 | * @param callable|null $callback |
||
49 | * |
||
50 | * @return Entity |
||
51 | */ |
||
52 | public function entity(callable $callback = null) |
||
64 | 1 | ||
65 | 1 | /** |
|
66 | * @param string $type |
||
67 | 2 | * @param callable|null $callback |
|
68 | * |
||
69 | * @return Inheritance\Inheritance |
||
70 | */ |
||
71 | public function inheritance($type, callable $callback = null) |
||
81 | 3 | ||
82 | 3 | /** |
|
83 | * @param callable|null $callback |
||
84 | 3 | * |
|
85 | * @return Inheritance\Inheritance |
||
86 | */ |
||
87 | public function singleTableInheritance(callable $callback = null) |
||
91 | |||
92 | 1 | /** |
|
93 | * @param callable|null $callback |
||
94 | 1 | * |
|
95 | * @return Inheritance\Inheritance |
||
96 | */ |
||
97 | public function joinedTableInheritance(callable $callback = null) |
||
101 | |||
102 | 1 | /** |
|
103 | * @param array|string $columns |
||
104 | 1 | * |
|
105 | * @return Index |
||
106 | */ |
||
107 | public function index($columns) |
||
114 | 3 | ||
115 | 3 | /** |
|
116 | 3 | * @param array|string $fields |
|
117 | 3 | * |
|
118 | * @return Primary |
||
119 | */ |
||
120 | public function primary($fields) |
||
127 | 3 | ||
128 | 3 | /** |
|
129 | 3 | * @param array|string $columns |
|
130 | 3 | * |
|
131 | * @return UniqueConstraint |
||
132 | */ |
||
133 | public function unique($columns) |
||
140 | 3 | ||
141 | 3 | /** |
|
142 | 3 | * @param string $class |
|
143 | 3 | * @param array $columns |
|
144 | * |
||
145 | * @return Index|Primary|UniqueConstraint |
||
146 | */ |
||
147 | protected function constraint($class, array $columns) |
||
155 | |||
156 | 9 | /** |
|
157 | * @param string $embeddable |
||
158 | 9 | * @param string|null $field |
|
159 | * @param callable|null $callback |
||
160 | * |
||
161 | * @return Embedded |
||
162 | */ |
||
163 | public function embed($embeddable, $field = null, callable $callback = null) |
||
176 | |||
177 | 2 | /** |
|
178 | * @param string $name |
||
179 | 2 | * @param callable $callback |
|
180 | * |
||
181 | * @return Overrides\Override |
||
182 | */ |
||
183 | public function override($name, callable $callback) |
||
196 | |||
197 | 3 | /** |
|
198 | * @param callable|null $callback |
||
199 | 3 | * |
|
200 | * @return LifecycleEvents |
||
201 | */ |
||
202 | public function events(callable $callback = null) |
||
210 | |||
211 | 2 | /** |
|
212 | * @return bool |
||
213 | 2 | */ |
|
214 | public function isEmbeddedClass() |
||
218 | |||
219 | 14 | /** |
|
220 | * @param string $name |
||
221 | 14 | * @param callable|null $callback |
|
222 | * |
||
223 | * @return Field |
||
224 | */ |
||
225 | protected function setArray($name, callable $callback = null) |
||
229 | |||
230 | 7 | /** |
|
231 | * @param string $method |
||
232 | * @param array $params |
||
233 | 7 | * |
|
234 | 3 | * @return mixed |
|
235 | */ |
||
236 | public function __call($method, $params) |
||
249 | |||
250 | /** |
||
251 | * @param string $message |
||
252 | * @throws LogicException |
||
253 | */ |
||
254 | protected function disallowInEmbeddedClasses($message = "") |
||
260 | } |
||
261 |