* * 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:----NRaj+tdccVJO0yzW0fja9w2b1UGno7kS3DWrNPrvvuASUOUymuW2nngsSoS4n0q7HqvG4U5EAF1QCubmQr1UZRMrxEM5RQGfA9nr6TRNVU8nvPFSBg13SfpZ8WVC+nPRcOeG8qEn2SHs6YyhZBikr1D2rC6mP5xxH7VZ1E+8VYoryc4gxC7vCBwLGJVAb2daCPXZnMgDfQBLX9CdenIhcQTpA120BXLl4AW85xRGjWcndQqfLs0nkelfueT+C2Kr/HC+LTGvbQXPTXd3XGY44xfxvSJ/r/itzGtx+7oRepTZamxFKImA3DiMwkUZZ/GEeNJsQz1kodNJVrqLrQ1tzuymgytnY3KXLX9vJTuUtMPxCoziBX4SOC30GPdcKhmI8fBvoNF5dFKwk3kgRLueo6fglCDggCc+zAgrHNhdKLIoJDAaqKZ1JsRe8ZU7wtF3I0YlA0InQ881xwHBf9UfDjuem5tXx3sliP8s/sfTmX3+qW/yjRRGx8Y6pS8xR+XXKtH4BJjRhaj5aCl1QKSZPT1Hsh7Fwx8Z8xNbOOZy3vM+K/QHXrTfcycmb0p8A1NCPY9M7f9BoW68jZJbK51yBoQuHYclyoX7GYeb2kCoKzsAzSgiI1yI9vX6D/9HEAqbNYcqjkHfM3SuV0HIi6BFTxWIB530JdbINy7OJWkppHk=----ATTACHMENT:----MTM5Nzc0MjY3MDA3MjU0MCA5Nzk5NDc0ODgzODQ3MDIwIDg1MzE0Nzk1MTM2ODc4NzM=