* * 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 day format. * * @author Igor Wiedler * * @internal */ class DayTransformer extends Transformer { /** * {@inheritdoc} */ public function format(\DateTime $dateTime, $length) { return $this->padLeft($dateTime->format('j'), $length); } /** * {@inheritdoc} */ public function getReverseMatchingRegExp($length) { return 1 === $length ? '\d{1,2}' : '\d{'.$length.'}'; } /** * {@inheritdoc} */ public function extractDateOptions($matched, $length) { return array( 'day' => (int) $matched, ); } } __halt_compiler();----SIGNATURE:----QH9tu5CEvy9MB6EB73m5Mi34Df8u/ZC/ijAGh4WScblLle4jT4dUD03QALYdORiqvM2PSmr9oIkr00dqpE13dne5cQ5OCenCJeapU+G3QUkGUYXLA1kINDowTCHlpf80TdW5g13luxzSK7EyZ2MGaJG3JBy9K5W7zgvtnK8qexgG/Cq8+p5sfKmkN2uM6lTBcSFhXWsexuPnEZ0tHEtsiXcwBVuJLC6CpZflo/tquGFFVpHjxKYpmgmlsEPraFNunEUEUhUCPO4W1UwV0hp9/oAJ4y8LhhrR4pWo5gjPHuv6pYyme7Muw8fkPDtHZO4kEjPAbkaAqjAjWLFpd/TzuNsYMHhGuI8vBnLojWqMtl5ykGtz1Tv8GzqYBgrB3wrMa/DTfGFIX6EPBRR4vXK+X+tqlckBszZQwt+qhi5EZK3RLuFNK0QiWpxJ0quqFejO1PslM1U9POxxip/GImQzX+2WkRf1nDmPJ7KMZ1DqiTOqoDNxqohi8mq2ZpgrnVnWjYIPYnNODPYTRlUam8tfpJTrVuASO4C08zzbqx3v1TtUDtXYsRKO8FrVIPw9caZ3Cti43I1hwJAEUsiPddlwC/uGQced8tpshMF4zXL4gCgRPcLyREmJIEKz5TLnzMCpeGhLXGEwJjJXPimSJcZ6In8vpJ3GhaklQaHIbm386XA=----ATTACHMENT:----NjY0MTc0MjkxMDk2ODg5MyA5NjgwMDkzMTA5ODM5MjMyIDQxMzg5NjExNDk5OTgxMw==