1 | <?php namespace jlourenco\base\Database; |
||
12 | class MySqlGrammar extends IlluminateMySqlGrammar { |
||
13 | |||
14 | /** |
||
15 | * |
||
16 | * @return void |
||
|
|||
17 | */ |
||
18 | public function __construct() |
||
30 | |||
31 | /** |
||
32 | * Get the SQL for a "comment" column modifier. |
||
33 | * |
||
34 | * @param \Illuminate\Database\Schema\Blueprint $blueprint |
||
35 | * @param \Illuminate\Support\Fluent $column |
||
36 | * @return string|null |
||
37 | */ |
||
38 | protected function modifyCollate(IlluminateBlueprint $blueprint, Fluent $column) |
||
46 | |||
47 | /** |
||
48 | * Get the SQL for a "comment" column modifier. |
||
49 | * |
||
50 | * @param \Illuminate\Database\Schema\Blueprint $blueprint |
||
51 | * @param \Illuminate\Support\Fluent $column |
||
52 | * @return string|null |
||
53 | */ |
||
54 | protected function modifyComment(IlluminateBlueprint $blueprint, Fluent $column) |
||
62 | |||
63 | /** |
||
64 | * Compile a create table command. |
||
65 | * |
||
66 | * @param \Illuminate\Database\Schema\Blueprint $blueprint |
||
67 | * @param \Illuminate\Support\Fluent $command |
||
68 | * @param \Illuminate\Database\Connection $connection |
||
69 | * @return string |
||
70 | */ |
||
71 | public function compileCreate(IlluminateBlueprint $blueprint, Fluent $command, Connection $connection) |
||
82 | |||
83 | /** |
||
84 | * Create the column definition for a binary type. |
||
85 | * |
||
86 | * @param \Illuminate\Support\Fluent $column |
||
87 | * @return string |
||
88 | */ |
||
89 | protected function typeBinary(Fluent $column) |
||
93 | |||
94 | /** |
||
95 | * Create the column definition for an 'set' type. |
||
96 | * |
||
97 | * @param \Illuminate\Support\Fluent $column |
||
98 | * @return string |
||
99 | */ |
||
100 | protected function typeSet(Fluent $column) |
||
104 | |||
105 | /** |
||
106 | * Compile an index creation command. |
||
107 | * |
||
108 | * @param \Illuminate\Database\Schema\Blueprint $blueprint |
||
109 | * @param \Illuminate\Support\Fluent $command |
||
110 | * @param string $type |
||
111 | * @return string |
||
112 | */ |
||
113 | protected function compileKey(IlluminateBlueprint $blueprint, Fluent $command, $type) |
||
143 | |||
144 | /** |
||
145 | * Compile the query to determine if the foreign key exists |
||
146 | * |
||
147 | * @return string |
||
148 | */ |
||
149 | public function compileHasForeign() |
||
153 | |||
154 | } |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.