| 1 | <?php |
||
| 9 | class Table extends AbstractBuilder implements Buildable |
||
| 10 | { |
||
| 11 | use Queueable { |
||
| 12 | build as buildQueued; |
||
| 13 | } |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | protected $primaryTable = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param ClassMetadataBuilder $builder |
||
| 22 | * @param string|callable|null $name |
||
| 23 | */ |
||
| 24 | 13 | public function __construct(ClassMetadataBuilder $builder, $name = null) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $name |
||
| 37 | * |
||
| 38 | * @return $this |
||
| 39 | */ |
||
| 40 | 13 | public function setName($name) |
|
| 41 | { |
||
| 42 | 13 | $this->builder->setTable($name); |
|
| 43 | |||
| 44 | 13 | return $this; |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $schema |
||
| 49 | * |
||
| 50 | * @return $this |
||
| 51 | */ |
||
| 52 | 3 | public function schema($schema) |
|
| 58 | |||
| 59 | /** |
||
| 60 | * @param string $charset |
||
| 61 | * |
||
| 62 | * @return $this |
||
| 63 | */ |
||
| 64 | 2 | public function charset($charset) |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @param string $collate |
||
| 73 | * |
||
| 74 | * @return $this |
||
| 75 | */ |
||
| 76 | 2 | public function collate($collate) |
|
| 82 | |||
| 83 | /** |
||
| 84 | * @param array $options |
||
| 85 | * |
||
| 86 | * @return $this |
||
| 87 | */ |
||
| 88 | 3 | public function options(array $options = []) |
|
| 94 | |||
| 95 | /** |
||
| 96 | * @param string $name |
||
| 97 | * @param string $value |
||
| 98 | * |
||
| 99 | * @return $this |
||
| 100 | */ |
||
| 101 | 3 | public function option($name, $value) |
|
| 107 | |||
| 108 | /** |
||
| 109 | * Execute the build process |
||
| 110 | */ |
||
| 111 | 7 | public function build() |
|
| 115 | } |
||
| 116 |