* * 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 date formats. * * @author Igor Wiedler * * @internal */ abstract class Transformer { /** * Format a value using a configured DateTime as date/time source. * * * @param \DateTime $dateTime A DateTime object to be used to generate the formatted value * @param int $length The formatted value string length * * @return string The formatted value */ abstract public function format(\DateTime $dateTime, $length); /** * Returns a reverse matching regular expression of a string generated by format(). * * @param int $length The length of the value to be reverse matched * * @return string The reverse matching regular expression */ abstract public function getReverseMatchingRegExp($length); /** * Extract date options from a matched value returned by the processing of the reverse matching * regular expression. * * @param string $matched The matched value * @param int $length The length of the Transformer pattern string * * @return array An associative array */ abstract public function extractDateOptions($matched, $length); /** * Pad a string with zeros to the left. * * @param string $value The string to be padded * @param int $length The length to pad * * @return string The padded string */ protected function padLeft($value, $length) { return str_pad($value, $length, '0', STR_PAD_LEFT); } } __halt_compiler();----SIGNATURE:----SIIqKdYch6dNXo6pwoKmTjTiFWa+l/xJI6agA5OB2eNBntIobdaxQ8xkOZjV3R8bgPoD45SfbDdSQX1I48mcAFz11Vhhoi46FMx2NPVMiH2zG76gSiSotHDleqWkdlMIAhve5pf5IAMbuYt4fSvcm8bjJKgBZVUfLGp7Dt8DH5JqeYZ4ZrtSZ3TrTdYnLmsYqGuUOsJOreO1qoMulNl7MxOpAin6dgzQt+HCrN8drXqMNuygriTyd6cIMOftVUFAZNj3O0KKBujqn6kRnwWidurekseE7ZwN8U1xjWN5uc9iITwgQwFK0Iwuhx9r7tVxP+TTGOiNhYRIwOy8kah7q5bOuMg22NOu9PqLeypAXRRVjk5Q0QGwbH0TN61eZVEphcPwIXPgxLv/qNgBM4Ja5NU+wJLJG8HWF1l1j3vAXRC/qLSI1Jnt4AgtciLZnuwYlXtwVKl3SVdUfd/XYLrXdpf0IYdwC8NyUe+1UQSSXmZUZD17rrwzt/+2jliC8tpsavJS49jA64BPdJ6NyWN14US6B9YLJbXK32aftZmlxXpScF+1WLy3vavkD/llNSIlJF3GWKAMfecIt2JQtAN9/7PC3nb9gro68R+bQJ/YHC26FocBlYuBic5zWY/UaItVRrFAoB4FHDoCQTxfYia8elUJaSZf92hu3q/2HY7oVlY=----ATTACHMENT:----Njg5ODg0MjMyODAwMjkyIDQ1MTY1NzIyOTUyOTkxMDcgNzgyOTg2Mzk4MjUyMzc0Mw==