Skip to content

Commit

Permalink
Change private static properties to public
Browse files Browse the repository at this point in the history
  • Loading branch information
ekinhbayar committed Sep 27, 2016
1 parent 0b6c920 commit e03a006
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/IntervalParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ class IntervalParser
*
* @var string $separatorExpression
*/
private static $leadingDataSeparator = "/(.*)\s+(?:in)\s+(.*)/ui";
public static $leadingDataSeparator = "/(.*)\s+(?:in)\s+(.*)/ui";

# Definitions of sub patterns for a valid interval
private static $intervalSeparatorDefinitions = <<<'REGEX'
public static $intervalSeparatorDefinitions = <<<'REGEX'
/(?(DEFINE)
(?<integer>
(?:\G|(?!\n))
Expand All @@ -50,17 +50,17 @@ class IntervalParser
)
REGEX;

private static $intervalOnly = "^(?<interval>(?&timepart)++)$/uix";
public static $intervalOnly = "^(?<interval>(?&timepart)++)$/uix";

private static $intervalWithTrailingData = "^(?<interval>(?&timepart)++)(?<trailing>.+)$/uix";
public static $intervalWithTrailingData = "^(?<interval>(?&timepart)++)(?<trailing>.+)$/uix";

/**
* Used to turn a given non-strtotime-compatible time string into a compatible one
* Only modifies the non-strtotime-compatible time strings provided leaving the rest intact
*
* @var string $normalizerExpression
*/
private static $normalizerExpression = <<<'REGEX'
public static $normalizerExpression = <<<'REGEX'
~
# grab the integer part of time string
\s? (?<int> \d{1,5}) \s?
Expand Down

0 comments on commit e03a006

Please sign in to comment.