| @@ 68-81 (lines=14) @@ | ||
| 65 | /** |
|
| 66 | * {@inheritdoc} |
|
| 67 | */ |
|
| 68 | public function generate(): string |
|
| 69 | { |
|
| 70 | $sqlPart = ''; |
|
| 71 | ||
| 72 | foreach ($this->list as $index => $column) { |
|
| 73 | if ($index > 0) { |
|
| 74 | $sqlPart .= $this->separator; |
|
| 75 | } |
|
| 76 | ||
| 77 | $sqlPart .= $column->generate(); |
|
| 78 | } |
|
| 79 | ||
| 80 | return $sqlPart; |
|
| 81 | } |
|
| 82 | } |
|
| 83 | ||
| @@ 24-37 (lines=14) @@ | ||
| 21 | /** |
|
| 22 | * {@inheritdoc} |
|
| 23 | */ |
|
| 24 | public function generate(): string |
|
| 25 | { |
|
| 26 | $sqlPart = ''; |
|
| 27 | ||
| 28 | foreach ($this->list as $index => $column) { |
|
| 29 | if ($index > 0) { |
|
| 30 | $sqlPart .= $this->separator; |
|
| 31 | } |
|
| 32 | ||
| 33 | $sqlPart .= $column->obtainName().'='.$column->obtainValue(); |
|
| 34 | } |
|
| 35 | ||
| 36 | return $sqlPart; |
|
| 37 | } |
|
| 38 | } |
|
| 39 | ||