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