4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Intl\DateFormatter\DateFormat
;
15 * Parser and formatter for day of week format
17 * @author Igor Wiedler <igor@wiedler.ch>
19 class DayOfWeekTransformer
extends Transformer
24 public function format(\DateTime
$dateTime, $length)
26 $dayOfWeek = $dateTime->format('l');
33 return substr($dayOfWeek, 0, 3);
40 public function getReverseMatchingRegExp($length)
44 return 'Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday';
48 return 'Mon|Tue|Wed|Thu|Fri|Sat|Sun';
55 public function extractDateOptions($matched, $length)