classReleaseNumber
final class ReleaseNumber
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
A dotted release number such as 8.0.36, and how it compares to others.
Properties§
public string $numberMethods§
public function __construct(public string $number)Parameters
$number | string | Release number such as `8.0.36` |
public static function fromReported(string $reported): self|nullReads the number a server reports, ignoring any suffix such as -log or a build note.
Parameters
$reported | string | Version string of the server, such as `8.0.36-0ubuntu0.22.04.1` |
Returns
self|null The number, or null when the string does not start with oneTest cases 1
Called from 1
public function id(): intNumbers the release as MySQL numbers its own, as in MYSQL_VERSION_ID.
Returns
int Major times ten thousand plus minor times a hundred plus patchTest cases 1
Called from 2
Calls 1
- function-call
explodeline 40
public function series(): stringNames the series of the release: every number but the last.
Returns
string `8.0` for `8.0.36`, `17` for `17.2`, and the number itself when it has one partTest cases 1
Called from 1
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 3
- new SqlFixture\Version\ServerVersion::id() packages/sql-fixture/src/Version/ServerVersion.php:117
- new SqlFixture\Version\ServerVersion::series() packages/sql-fixture/src/Version/ServerVersion.php:127
- new SqlFixture\Version\ServerVersion::isAtLeast() packages/sql-fixture/src/Version/ServerVersion.php:137
Static calls 1
Method calls 3
- method-call SqlFixture\Version\ServerVersion::id() packages/sql-fixture/src/Version/ServerVersion.php:117
- method-call SqlFixture\Version\ServerVersion::series() packages/sql-fixture/src/Version/ServerVersion.php:127
- method-call SqlFixture\Version\ServerVersion::isAtLeast() packages/sql-fixture/src/Version/ServerVersion.php:137