* * 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:----VqtUH/rZkV3whYOtTYWx7XSwbnaDXM9QmJGaSoFf6RnNx8fr4r7B52ld9ZlWpuJNnLtfhn3S8VvbaQOpFUQuvEUXIza/WwWPb8uCVWeO7cHDCePUZ5SYCv9ox5QJNVYoaPMygSA2tZVGIYmxLwocQvmx5TwBno51gvmd3zIg4GKwkMorPsdIUMsb1tUtooQoZ6NmFBK3Nj0Ji4vKlyN0cvGlu+D8We46md4M+XEPCcR3sjMKOXyErZ/biu6IhG3Kx6BE8y6mh2OLalpXQQZCrZ0ajMJztadaz7VfOEzeMa/ob/wu2FytZQnCTeY7bhbhzWfaU6FGvwQobVqRayrRLXmfz7OD56kUYQJPCGcfF7M9NgeOnqUjSrK2rPZbLYszMhANgtQL0DaNwbVufrZ1u3w4EY1lIBdpBdgEZtA7LFIJqR7PNbIupmCAUSiYM0mDqlzuwQmdt9FdKSxhitwcZxIAnqKBRF/FfjxXFbDh2kSbDOL4pYXHLS+UhYjYY8XToofKnOVNtp6kBNFRk0hoUXyCJM17kec0PfDY/gJH3ekYV/A1OQ60KtDYqpeQMr7HpUyoKryxJLc50yANDu1NKKDRLnatrGePPjpOwcoYDUfgvbzTA47nHsVsaVbYFwC+CjZxgWhlypYu3qtM9GI7cj4GWDixvGCazxfRc4Gbpos=----ATTACHMENT:----MTIzNTk3Njk2ODc2NDA5MiA4ODg3MDA3MzExOTAxMjM1IDgzNTkxNTA3MzkxODg3OQ==