classReleases
final class Releases
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
The supported releases of each dialect and the default among them.
The tags are the ones sql-parser, sql-semantics, sql-faker and sql-formatter accept, so one tag selects the same release everywhere.
Methods§
public function defaultTag(string $dialect): stringNames the default release of a dialect.
Parameters
$dialect | string |
Returns
string Version tag such as `mysql-8.4.7`Throws
UnsupportedVersionException When the dialect has no releasesTest cases 1
Called from 2
Calls 1
- method-call Releases::entry() line 59
public function numbers(string $dialect): non-empty-array<string, string>Lists the releases of a dialect, oldest first.
Parameters
$dialect | string |
Returns
non-empty-array<string, string> Release number by version tagThrows
UnsupportedVersionException When the dialect has no releasesTest cases 2
Called from 3
- method-call SqlFixture\Version\ServerVersion::resolve() packages/sql-fixture/src/Version/ServerVersion.php:42
- method-call SqlFixture\Version\ServerVersion::all() packages/sql-fixture/src/Version/ServerVersion.php:83
- method-call SqlFixture\Version\ServerVersion::tags() packages/sql-fixture/src/Version/ServerVersion.php:99
Calls 1
- method-call Releases::entry() line 71
public function entry(string $dialect): array{default: string, versions: non-empty-array<string, string>}Parameters
$dialect | string |
Returns
array{default: string, versions: non-empty-array<string, string>}Throws
UnsupportedVersionException When the dialect has no releasesTest cases 1
Called from 2
Calls 2
- class-const Releases::RELEASES() line 81
- new UnsupportedVersionException line 81
Private surface 1§
Implementation details, listed for orientation only.
private const RELEASES = ['mysql' => ['default' => 'mysql-8.4.7', 'versions' => ['mysql-5.6.51' => '5.6.…Test cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 5
DatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsFixtureProviderTestcallsPlatformFactoryTestcallsServerVersionTestcalls
Relations§
Instantiated in 4
- new SqlFixture\Version\ServerVersion::resolve() packages/sql-fixture/src/Version/ServerVersion.php:40
- new SqlFixture\Version\ServerVersion::all() packages/sql-fixture/src/Version/ServerVersion.php:83
- new SqlFixture\Version\ServerVersion::tags() packages/sql-fixture/src/Version/ServerVersion.php:99
- new SqlFixture\Version\ServerVersion::isDefault() packages/sql-fixture/src/Version/ServerVersion.php:107
Method calls 5
- method-call SqlFixture\Version\ServerVersion::resolve() packages/sql-fixture/src/Version/ServerVersion.php:41
- method-call SqlFixture\Version\ServerVersion::resolve() packages/sql-fixture/src/Version/ServerVersion.php:42
- method-call SqlFixture\Version\ServerVersion::all() packages/sql-fixture/src/Version/ServerVersion.php:83
- method-call SqlFixture\Version\ServerVersion::tags() packages/sql-fixture/src/Version/ServerVersion.php:99
- method-call SqlFixture\Version\ServerVersion::isDefault() packages/sql-fixture/src/Version/ServerVersion.php:107