classKeywordPhraseSpacingRule
final class KeywordPhraseSpacingRule
implements SpacingRule
Preserves word boundaries inside explicitly declared compound keyword candidates.
Methods§
public function apply(LexemeBoundary $boundary, LexemeInput $input): ?SpacingConstraintSeparates elements belonging to the same compound occurrence.
Parameters
$boundary | LexemeBoundary | |
$input | LexemeInput |
Returns
Test cases 1
Calls 2
- new SpacingConstraint line 27
- class-const SpacingConstraint::SPACE() line 27
Test cases 15§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 14
DerivationTraceTestcallsTokenGeneratorTestcallsLexicalExceptionTestcallsLexemeSequenceTestcallsCandidateResolverTestcallsTerminalSequenceTestcallsGenerationContextTestcallsCharsetValueLexemeGeneratorTestcallsDefinitionFactoryTestcallsLexicalGrammarTestcallsMySqlProviderTestcallsPostgreSqlProviderTestcallsSqlGeneratorFactoryTestcallsSqliteProviderTestcalls