-class Chronic::RepeaterSeason < Chronic::Repeater #:nodoc:
- SEASON_SECONDS = 7_862_400 # 91 * 24 * 60 * 60
-
- def next(pointer)
- super
-
- raise 'Not implemented'
- end
-
- def this(pointer = :future)
- super
-
- raise 'Not implemented'
- end
-
- def width
- SEASON_SECONDS
- end
-
- def to_s
- super << '-season'
- end
-end
\ No newline at end of file
+<?php
+class Horde_Date_Parser_Locale_Base_Repeater_Season extends Horde_Date_Parser_Locale_Base_Repeater
+{
+ /**
+ * 91 * 24 * 60 * 60
+ */
+ const SEASON_SECONDS = 7862400;
+
+ public function next($pointer)
+ {
+ parent::next($pointer);
+ throw new Horde_Date_Parser_Exception('Not implemented');
+ }
+
+ public function this($pointer = 'future')
+ {
+ parent::this($pointer);
+ throw new Horde_Date_Parser_Exception('Not implemented');
+ }
+
+ public function width()
+ {
+ return self::SEASON_SECONDS;
+ }
+
+ public function __toString()
+ {
+ return parent::__toString() . '-season';
+ }
+
+}
-class Chronic::RepeaterSeasonName < Chronic::RepeaterSeason #:nodoc:
- @summer = ['jul 21', 'sep 22']
- @autumn = ['sep 23', 'dec 21']
- @winter = ['dec 22', 'mar 19']
- @spring = ['mar 20', 'jul 20']
-
- def next(pointer)
- super
- raise 'Not implemented'
- end
-
- def this(pointer = :future)
- super
- raise 'Not implemented'
- end
-
- def width
- (91 * 24 * 60 * 60)
- end
-
- def to_s
- super << '-season-' << @type.to_s
- end
-end
\ No newline at end of file
+<?php
+class Horde_Date_Parser_Locale_Base_Repeater_SeasonName extends Horde_Date_Parser_Locale_Base_Repeater_Season
+{
+ /**
+ * 91 * 24 * 60 * 60
+ */
+ const SEASON_SECONDS = 7862400;
+
+ public $summer = array('jul 21', 'sep 22');
+ public $autumn = array('sep 23', 'dec 21');
+ public $winter = array('dec 22', 'mar 19');
+ public $spring = array('mar 20', 'jul 20');
+
+ public function next($pointer)
+ {
+ parent::next($pointer);
+ throw new Horde_Date_Parser_Exception('Not implemented');
+ }
+
+ public function this($pointer = 'future')
+ {
+ parent::this($pointer);
+ throw new Horde_Date_Parser_Exception('Not implemented');
+ }
+
+ public function width()
+ {
+ return self::SEASON_SECONDS;
+ }
+
+ public function __toString()
+ {
+ return parent::__toString() . '-season-' . $this->type;
+ }
+
+}