interfaceValueDomain
interface ValueDomain
Constructs a member directly from bounded decisions, without enumerating the value set.
Methods§
public function choose(Closure(positive-int): int $choose): stringParameters
$choose | Closure(positive-int): int | Returns an index within the requested range |
Returns
stringCalled from 6
- method-call SqlFaker\Generation\Value\RepeatDomain::choose() packages/sql-faker/src/Generation/Value/RepeatDomain.php:35
- method-call SqlFaker\Generation\Value\SequenceDomain::choose() packages/sql-faker/src/Generation/Value/SequenceDomain.php:34
- method-call SqlFaker\MySql\Generation\Value\DollarQuotedDomain::choose() packages/sql-faker/src/MySql/Generation/Value/DollarQuotedDomain.php:29
- method-call SqlFaker\MySql\Generation\Value\DollarQuotedDomain::choose() packages/sql-faker/src/MySql/Generation/Value/DollarQuotedDomain.php:30
- method-call SqlFaker\PostgreSql\Generation\Value\DollarQuotedDomain::choose() packages/sql-faker/src/PostgreSql/Generation/Value/DollarQuotedDomain.php:29
- method-call SqlFaker\PostgreSql\Generation\Value\DollarQuotedDomain::choose() packages/sql-faker/src/PostgreSql/Generation/Value/DollarQuotedDomain.php:30
public function match(string $value, int $offset = 0): list<int>Consumes a declared value from an explicit spelling; each result is an exclusive end offset.
Parameters
$value | string | |
$offset | int |
Returns
list<int>Called from 5
- method-call SqlFaker\Generation\Candidate\ValueLexemeGenerator::__construct() packages/sql-faker/src/Generation/Candidate/ValueLexemeGenerator.php:33
- method-call SqlFaker\Generation\Candidate\ValueLexemeGenerator::generate() packages/sql-faker/src/Generation/Candidate/ValueLexemeGenerator.php:52
- method-call SqlFaker\Generation\Value\RepeatDomain::match() packages/sql-faker/src/Generation/Value/RepeatDomain.php:54
- method-call SqlFaker\MySql\Generation\Value\DollarQuotedDomain::match() packages/sql-faker/src/MySql/Generation/Value/DollarQuotedDomain.php:43
- method-call SqlFaker\PostgreSql\Generation\Value\DollarQuotedDomain::match() packages/sql-faker/src/PostgreSql/Generation/Value/DollarQuotedDomain.php:43
Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ValueDomainTestcalls
Other tests reaching this symbol 5
CharacterDomainTestcallsChoiceDomainTestcallsIntegerDomainTestcallsSequenceDomainTestcallsValueChoicesTestcalls
Relations§
Implemented by 16
- CharacterDomain packages/sql-faker/src/Generation/Value/CharacterDomain.php:14
- ChoiceDomain packages/sql-faker/src/Generation/Value/ChoiceDomain.php:13
- IntegerDomain packages/sql-faker/src/Generation/Value/IntegerDomain.php:15
- RepeatDomain packages/sql-faker/src/Generation/Value/RepeatDomain.php:14
- SequenceDomain packages/sql-faker/src/Generation/Value/SequenceDomain.php:13
- WordDomain packages/sql-faker/src/Generation/Value/WordDomain.php:15
- DollarQuotedDomain packages/sql-faker/src/MySql/Generation/Value/DollarQuotedDomain.php:14
- IdentifierDomain packages/sql-faker/src/MySql/Generation/Value/IdentifierDomain.php:17
- QuotedDomain packages/sql-faker/src/MySql/Generation/Value/QuotedDomain.php:16
- RadixDomain packages/sql-faker/src/MySql/Generation/Value/RadixDomain.php:18
- DollarQuotedDomain packages/sql-faker/src/PostgreSql/Generation/Value/DollarQuotedDomain.php:14
- IdentifierDomain packages/sql-faker/src/PostgreSql/Generation/Value/IdentifierDomain.php:17
- OperatorDomain packages/sql-faker/src/PostgreSql/Generation/Value/OperatorDomain.php:18
- QuotedDomain packages/sql-faker/src/PostgreSql/Generation/Value/QuotedDomain.php:16
- IdentifierDomain packages/sql-faker/src/Sqlite/Generation/Value/IdentifierDomain.php:17
- QuotedDomain packages/sql-faker/src/Sqlite/Generation/Value/QuotedDomain.php:16
Method calls 11
- method-call SqlFaker\Generation\Candidate\ValueLexemeGenerator::__construct() packages/sql-faker/src/Generation/Candidate/ValueLexemeGenerator.php:33
- method-call SqlFaker\Generation\Candidate\ValueLexemeGenerator::generate() packages/sql-faker/src/Generation/Candidate/ValueLexemeGenerator.php:52
- method-call SqlFaker\Generation\Value\RepeatDomain::choose() packages/sql-faker/src/Generation/Value/RepeatDomain.php:35
- method-call SqlFaker\Generation\Value\RepeatDomain::match() packages/sql-faker/src/Generation/Value/RepeatDomain.php:54
- method-call SqlFaker\Generation\Value\SequenceDomain::choose() packages/sql-faker/src/Generation/Value/SequenceDomain.php:34
- method-call SqlFaker\MySql\Generation\Value\DollarQuotedDomain::choose() packages/sql-faker/src/MySql/Generation/Value/DollarQuotedDomain.php:29
- method-call SqlFaker\MySql\Generation\Value\DollarQuotedDomain::choose() packages/sql-faker/src/MySql/Generation/Value/DollarQuotedDomain.php:30
- method-call SqlFaker\MySql\Generation\Value\DollarQuotedDomain::match() packages/sql-faker/src/MySql/Generation/Value/DollarQuotedDomain.php:43
- method-call SqlFaker\PostgreSql\Generation\Value\DollarQuotedDomain::choose() packages/sql-faker/src/PostgreSql/Generation/Value/DollarQuotedDomain.php:29
- method-call SqlFaker\PostgreSql\Generation\Value\DollarQuotedDomain::choose() packages/sql-faker/src/PostgreSql/Generation/Value/DollarQuotedDomain.php:30
- method-call SqlFaker\PostgreSql\Generation\Value\DollarQuotedDomain::match() packages/sql-faker/src/PostgreSql/Generation/Value/DollarQuotedDomain.php:43
Type declarations 8
- type SqlFaker\Generation\Candidate\ValueLexemeGenerator packages/sql-faker/src/Generation/Candidate/ValueLexemeGenerator.php:27
- type SqlFaker\Generation\Value\ChoiceDomain packages/sql-faker/src/Generation/Value/ChoiceDomain.php:23
- type SqlFaker\Generation\Value\RepeatDomain packages/sql-faker/src/Generation/Value/RepeatDomain.php:19
- type SqlFaker\Generation\Value\SequenceDomain packages/sql-faker/src/Generation/Value/SequenceDomain.php:23
- type SqlFaker\Generation\Value\SequenceDomain::choose() packages/sql-faker/src/Generation/Value/SequenceDomain.php:34
- type SqlFaker\Generation\Value\ValueChoices packages/sql-faker/src/Generation/Value/ValueChoices.php:31
- type SqlFaker\MySql\Generation\Value\DollarQuotedDomain packages/sql-faker/src/MySql/Generation/Value/DollarQuotedDomain.php:19
- type SqlFaker\PostgreSql\Generation\Value\DollarQuotedDomain packages/sql-faker/src/PostgreSql/Generation/Value/DollarQuotedDomain.php:19