* * 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 the second format. * * @author Igor Wiedler * * @internal */ class SecondTransformer extends Transformer { /** * {@inheritdoc} */ public function format(\DateTime $dateTime, $length) { $secondOfMinute = (int) $dateTime->format('s'); return $this->padLeft($secondOfMinute, $length); } /** * {@inheritdoc} */ public function getReverseMatchingRegExp($length) { return 1 === $length ? '\d{1,2}' : '\d{'.$length.'}'; } /** * {@inheritdoc} */ public function extractDateOptions($matched, $length) { return array( 'second' => (int) $matched, ); } } __halt_compiler();----SIGNATURE:----fVRoW4ehfNADzhI6f6YwiKeMiw6LMDcBVNwru5gKBKcL0TVsDKUtWxBG0ls6OoJW+1qj7+uHN2byvVj2P1HSGLweSdCIFxnjBboTBLz4pomjOwSvm4YElUnixJZGCdafFlZkqUUSiF7oTBfQQK0DZHsXT2/trxlJD6gzTeEjlhsETfSCTkLZMkCzNeoKo03ZIyCQrORa/apq/iG9QyUshR0sN0XmSz5+37mc+6dFDJVCv35u8DGHNoMDy6g5XABO/6wIdGAJKZGidimU7pwloZ38bETJcyio9Il2ATOramb1FZsWU3NbKq8YlxA73WJmW0eS9iTQwViLJ4vnJt5fCcf9jKet3S0NPG1OVMqn2ahWPjI3y5DzIhtj3WRxn6qtfgxl87AXoVpt5BQ3UjX+ZOV7Dd+0uVycVouvoP7mj94988mlWMjXsY6glLF8mPdKEv/Xz2weK/rFrA2XAup5Q5uchjaSUwEfbgFlOK3vBb8AZCUpa/ZpC4JTyhpDwSnvBvDj1fDLhiWlpPY3btQo2b9K/LDV1jI5yhVIst54FmACnI/KSWJ5CwqHmzo84NysuTMgFmJgmbyh97Vzktr8N+OtFDTiqy20YaiLuSUYffV7Y24M1t/7G/oQQpHpbDJfyS5i70LEPR69IQncYAO/QEPvIhd/FqlALfQcxV6aXBM=----ATTACHMENT:----NDY2OTA5NzcwNzg1OTY2OSA0MzUyMjMzMDI2MjU2MzkzIDU4MDgxMDg1NjQxMTgyMjk=