@@ 42-52 (lines=11) @@ | ||
39 | /** |
|
40 | * {@inheritdoc} |
|
41 | */ |
|
42 | public function generate(): string |
|
43 | { |
|
44 | $partQuery = '`'.$this->name.'`'; |
|
45 | if ($this->shortcut !== null) { |
|
46 | $partQuery .= ' AS `'.$this->shortcut.'`'; |
|
47 | } |
|
48 | ||
49 | $partQuery .= ' ON '.$this->on; |
|
50 | ||
51 | return $partQuery; |
|
52 | } |
|
53 | } |
|
54 |
@@ 193-202 (lines=10) @@ | ||
190 | /** |
|
191 | * {@inheritdoc} |
|
192 | */ |
|
193 | public function generate(): string |
|
194 | { |
|
195 | $partQuery = '`'.$this->name.'`'; |
|
196 | ||
197 | if ($this->shortcut !== null) { |
|
198 | $partQuery .= ' AS `'.$this->shortcut.'`'; |
|
199 | } |
|
200 | ||
201 | return $partQuery; |
|
202 | } |
|
203 | } |
|
204 |