Browse Source

[Locale] renamed method

Eriksen Costa 14 years ago
parent
commit
1e2fa773c2

+ 1 - 1
src/Symfony/Component/Locale/Stub/DateFormat/FullTransformer.php

@@ -280,7 +280,7 @@ class FullTransformer
 
         // Normalize hour for mktime
         if ($hourInstance instanceof HourTransformer) {
-            $hour = $hourInstance->getMktimeHour($hour, $marker);
+            $hour = $hourInstance->getNormalizedHour($hour, $marker);
         }
 
         // Set the timezone if different from the default one

+ 1 - 1
src/Symfony/Component/Locale/Stub/DateFormat/Hour1200Transformer.php

@@ -31,7 +31,7 @@ class Hour1200Transformer extends HourTransformer
     /**
      * {@inheritDoc}
      */
-    public function getMktimeHour($hour, $marker = null)
+    public function getNormalizedHour($hour, $marker = null)
     {
         if ('PM' === $marker) {
             $hour += 12;

+ 1 - 1
src/Symfony/Component/Locale/Stub/DateFormat/Hour1201Transformer.php

@@ -29,7 +29,7 @@ class Hour1201Transformer extends HourTransformer
     /**
      * {@inheritDoc}
      */
-    public function getMktimeHour($hour, $marker = null)
+    public function getNormalizedHour($hour, $marker = null)
     {
         if ('PM' !== $marker && 12 === $hour) {
             $hour = 0;

+ 1 - 1
src/Symfony/Component/Locale/Stub/DateFormat/Hour2400Transformer.php

@@ -29,7 +29,7 @@ class Hour2400Transformer extends HourTransformer
     /**
      * {@inheritDoc}
      */
-    public function getMktimeHour($hour, $marker = null)
+    public function getNormalizedHour($hour, $marker = null)
     {
         if ('AM' == $marker) {
             $hour = 0;

+ 1 - 1
src/Symfony/Component/Locale/Stub/DateFormat/Hour2401Transformer.php

@@ -31,7 +31,7 @@ class Hour2401Transformer extends HourTransformer
     /**
      * {@inheritDoc}
      */
-    public function getMktimeHour($hour, $marker = null)
+    public function getNormalizedHour($hour, $marker = null)
     {
         if (null === $marker && 24 === $hour) {
             $hour = 0;

+ 3 - 3
src/Symfony/Component/Locale/Stub/DateFormat/HourTransformer.php

@@ -19,11 +19,11 @@ namespace Symfony\Component\Locale\Stub\DateFormat;
 abstract class HourTransformer extends Transformer
 {
     /**
-     * Returns an hour value suitable for mktime() usage
+     * Returns a normalized hour value suitable for the hour transformer type
      *
      * @param  int     $hour    The hour value
      * @param  string  $marker  An optional AM/PM marker
-     * @return int              The hour value suitable for mktime() usage
+     * @return int              The normalized hour value
      */
-    abstract public function getMktimeHour($hour, $marker = null);
+    abstract public function getNormalizedHour($hour, $marker = null);
 }