Symfony\Component\Intl\DateFormatter\DateFormat\MonthTransformer
Parser and formatter for month format
- Author: Igor Wiedler <igor@wiedler.ch>
Synopsis
class MonthTransformer
extends Transformer
{
- // members
- protected array $months;
- protected array $shortMonths;
- protected array $flippedMonths;
- protected array $flippedShortMonths;
- // methods
- public void __construct()
- public void format()
- public void getReverseMatchingRegExp()
- public void extractDateOptions()
- // Inherited methods from Transformer
- public abstract string format()
- public abstract string getReverseMatchingRegExp()
- public abstract array extractDateOptions()
- protected string padLeft()
Hierarchy
Extends
Extended by
Members
protected
- $flippedMonths
—
array
Flipped $months array, $name => $index - $flippedShortMonths
—
array
Flipped $shortMonths array, $name => $index - $months — array
- $shortMonths
—
array
Short months names (first 3 letters)
Methods
public
- __construct() — Constructor
- extractDateOptions() — {@inheritDoc}
- format() — {@inheritDoc}
- getReverseMatchingRegExp() — {@inheritDoc}
Inherited from Symfony\Component\Intl\DateFormatter\DateFormat\Transformer
protected
- padLeft() — Pad a string with zeros to the left
public
- extractDateOptions() — Extract date options from a matched value returned by the processing of the reverse matching regular expression
- format() — Format a value using a configured DateTime as date/time source
- getReverseMatchingRegExp() — Returns a reverse matching regular expression of a string generated by format()