* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Intl\DateFormatter\DateFormat; /** * Parser and formatter for minute format. * * @author Igor Wiedler * * @internal */ class MinuteTransformer extends Transformer { /** * {@inheritdoc} */ public function format(\DateTime $dateTime, $length) { $minuteOfHour = (int) $dateTime->format('i'); return $this->padLeft($minuteOfHour, $length); } /** * {@inheritdoc} */ public function getReverseMatchingRegExp($length) { return 1 === $length ? '\d{1,2}' : '\d{'.$length.'}'; } /** * {@inheritdoc} */ public function extractDateOptions($matched, $length) { return array( 'minute' => (int) $matched, ); } } __halt_compiler();----SIGNATURE:----wFVBsxtgQkztCNxF9XclJlxfk6frK2/4igr6KH7zjmYO7MSBmrlbuo9diTl0NGDy3lQ1ZnxzlyQdIouXBjvm1d+64rbtwrN75ny0+DSlOowVR+GUwOe65ZpBAszCMSgGpjq8qEzMWgRVxVJC8nYVg39vj/p3dm2W6Uxin1h/w8NAUSWTeXwAPQdnKMClElXb8/LxOrV2um78ZyAEAbBX66hKyFfW5GEf3f92WrP+9Z8XEq0tX+YclPq19gl2hVXyokjail1JYQmFAUMGknyEo8dUirYCkQ8A2Hpig2nPXukBvkBynTAsTGSUqvI2+F1y1zWEEd5RpcRLv1Z4rCoSYUMfb9L+72xZgyNadDFLtFDDX3MDi3wCrsBGfs1jxJT8ySii9LVocJF3oOusf+GD3pcYbyu8UUna1fKDNZ3bjKZLjtoGCSE3E6BOE2tmJwTefCFlENcQBvlyvIg4Sd72r2dPilzFaV/QLAWbWdlLowQw/1d+hWMTm8DVgMuyaA8bitOZ9dnf018hQmJnCkTXPFs0diywbgo3BPuz+sJ7y0BsyaI+GFIHKONa4Z0J8Rz2dOJX461LPJp1a32JgLkVHnAJQ2hx8L0bb3uE9Pvq9uzrr17ovAPVKux4CrEqovBLr5/+8I5z8IORQQBN4GqDJp6qaXcL+8DJ5Gtqkz8ZINQ=----ATTACHMENT:----OTkwMDY1ODgxODgyMDEwNCA1NzQ2MjgxOTAwOTQzMjYyIDQxOTc2NTA0NjE1NzEyMQ==