-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kamil Tekiela <[email protected]>
- Loading branch information
1 parent
ef954bb
commit 891d9ff
Showing
2 changed files
with
9 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,21 +2,21 @@ | |
|
||
declare(strict_types=1); | ||
|
||
namespace PhpMyAdmin\SqlParser\Components; | ||
namespace PhpMyAdmin\SqlParser\Components\Parsers; | ||
|
||
use PhpMyAdmin\SqlParser\Component; | ||
use PhpMyAdmin\SqlParser\Parseable; | ||
use PhpMyAdmin\SqlParser\Parser; | ||
use PhpMyAdmin\SqlParser\TokensList; | ||
use PhpMyAdmin\SqlParser\Translator; | ||
use RuntimeException; | ||
use Stringable; | ||
|
||
use function implode; | ||
|
||
/** | ||
* `UNION` keyword builder. | ||
*/ | ||
final class UnionKeyword implements Component, Parseable | ||
final class UnionKeywords implements Parseable | ||
{ | ||
/** | ||
* Parses the tokens contained in the given list in the context of the given parser. | ||
|
@@ -32,12 +32,7 @@ public static function parse(Parser $parser, TokensList $list, array $options = | |
throw new RuntimeException(Translator::gettext('Not implemented yet.')); | ||
} | ||
|
||
public function build(): string | ||
{ | ||
throw new RuntimeException(Translator::gettext('Not implemented yet.')); | ||
} | ||
|
||
/** @param UnionKeyword[][] $component the component to be built */ | ||
/** @param list<array{string|Stringable,string|Stringable}> $component the component to be built */ | ||
public static function buildAll(array $component): string | ||
Check failure on line 36 in src/Components/Parsers/UnionKeywords.php GitHub Actions / lint-docs
Check failure on line 36 in src/Components/Parsers/UnionKeywords.php GitHub Actions / lint-docs
|
||
{ | ||
$tmp = []; | ||
|
@@ -47,9 +42,4 @@ public static function buildAll(array $component): string | |
|
||
return implode(' ', $tmp); | ||
} | ||
|
||
public function __toString(): string | ||
{ | ||
return $this->build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters