classTimeZoneIntervalRule
final class TimeZoneIntervalRule
implements RewriteRule
Implements gram.y/zone_value's HOUR and MINUTE interval-mask restriction.
Methods§
public function rewrite(TerminalSequence $sequence): TerminalSequenceLeaves ordinary interval types and valid zone modifiers unchanged.
Parameters
$sequence | TerminalSequence |
Returns
Test cases 1
TimeZoneIntervalRuleTest::testRewriteAppliesOnlyToTimeZoneIntervalscovers and calls
Calls 6
- method-call TerminalSequence::occurrences() line 23
- method-call TerminalSequence::child() line 24
- method-call TerminalSequence::range() line 25
- function-call
array_sliceline 29 - method-call TerminalSequence::names() line 29
- function-call
array_intersectline 30
Test cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
TimeZoneIntervalRuleTest::testRewriteAppliesOnlyToTimeZoneIntervalscovers and calls
Other tests reaching this symbol 6
MySqlProviderTestcallsGenerationContextTestcallsRewriteDefinitionsTestcallsPostgreSqlProviderTestcallsSqlGeneratorFactoryTestcallsSqliteProviderTestcalls