1 | <?php |
||
12 | class Builder extends AbstractBuilder implements Fluent |
||
13 | { |
||
14 | use Traits\Fields; |
||
15 | use Traits\Dates; |
||
16 | use Traits\Aliases; |
||
17 | use Traits\Relations; |
||
18 | use Traits\Macroable; |
||
19 | use Traits\Queueable; |
||
20 | |||
21 | /** |
||
22 | * @param string|callable $name |
||
23 | * @param callable|null $callback |
||
24 | * |
||
25 | * @return Table |
||
26 | */ |
||
27 | public function table($name, callable $callback = null) |
||
45 | 1 | ||
46 | /** |
||
47 | 1 | * @param callable|null $callback |
|
48 | * |
||
49 | * @return Entity |
||
50 | */ |
||
51 | public function entity(callable $callback = null) |
||
63 | 2 | ||
64 | 1 | /** |
|
65 | 1 | * @param string $type |
|
66 | * @param callable|null $callback |
||
67 | 2 | * |
|
68 | * @return Inheritance\Inheritance |
||
69 | */ |
||
70 | public function inheritance($type, callable $callback = null) |
||
80 | 3 | ||
81 | 3 | /** |
|
82 | 3 | * @param callable|null $callback |
|
83 | * |
||
84 | 3 | * @return Inheritance\Inheritance |
|
85 | */ |
||
86 | public function singleTableInheritance(callable $callback = null) |
||
90 | |||
91 | /** |
||
92 | 1 | * @param callable|null $callback |
|
93 | * |
||
94 | 1 | * @return Inheritance\Inheritance |
|
95 | */ |
||
96 | public function joinedTableInheritance(callable $callback = null) |
||
100 | |||
101 | /** |
||
102 | 1 | * @param array|string $columns |
|
103 | * |
||
104 | 1 | * @return Index |
|
105 | */ |
||
106 | public function index($columns) |
||
113 | |||
114 | 3 | /** |
|
115 | * @param array|string $fields |
||
116 | 3 | * |
|
117 | 3 | * @return Primary |
|
118 | */ |
||
119 | 3 | public function primary($fields) |
|
126 | |||
127 | /** |
||
128 | * @param array|string $columns |
||
129 | * |
||
130 | * @return UniqueConstraint |
||
131 | 3 | */ |
|
132 | public function unique($columns) |
||
139 | |||
140 | 3 | /** |
|
141 | * @param string $class |
||
142 | 3 | * @param array $columns |
|
143 | * |
||
144 | * @return Index|Primary|UniqueConstraint |
||
145 | */ |
||
146 | protected function constraint($class, array $columns) |
||
154 | 3 | ||
155 | 3 | /** |
|
156 | * @param string $embeddable |
||
157 | 3 | * @param string|null $field |
|
158 | * @param callable|null $callback |
||
159 | 3 | * |
|
160 | * @return Embedded |
||
161 | 3 | */ |
|
162 | public function embed($embeddable, $field = null, callable $callback = null) |
||
175 | 2 | ||
176 | 2 | /** |
|
177 | * @param string $name |
||
178 | 2 | * @param callable $callback |
|
179 | * |
||
180 | 2 | * @return Overrides\Override |
|
181 | */ |
||
182 | 2 | public function override($name, callable $callback) |
|
195 | 3 | ||
196 | 3 | /** |
|
197 | * @param callable|null $callback |
||
198 | 3 | * |
|
199 | * @return LifecycleEvents |
||
200 | 3 | */ |
|
201 | public function events(callable $callback = null) |
||
209 | |||
210 | 2 | /** |
|
211 | * @return bool |
||
212 | 2 | */ |
|
213 | public function isEmbeddedClass() |
||
217 | |||
218 | /** |
||
219 | * @param string $method |
||
220 | * @param array $params |
||
221 | * |
||
222 | 14 | * @return mixed |
|
223 | */ |
||
224 | 14 | public function __call($method, $params) |
|
237 | 3 | ||
238 | /** |
||
239 | * @param string $message |
||
240 | 4 | * @throws LogicException |
|
241 | 3 | */ |
|
242 | protected function disallowInEmbeddedClasses($message = "") |
||
248 | } |
||
249 |