Total Complexity | 5 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class Litteral implements SymbolFormatterInterface |
||
14 | { |
||
15 | /** |
||
16 | * Will consider symbols (not handled by previous formatters) as litterals |
||
17 | * |
||
18 | * @var boolean |
||
19 | */ |
||
20 | protected $considerSymbolsAsLitterals; |
||
21 | |||
22 | /** |
||
23 | * Class constructor. |
||
24 | * |
||
25 | * @param boolean $considerSymbolsAsLitterals |
||
26 | */ |
||
27 | public function __construct($considerSymbolsAsLitterals = false) |
||
28 | { |
||
29 | $this->considerSymbolsAsLitterals = $considerSymbolsAsLitterals; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @inheritDoc |
||
34 | */ |
||
35 | public function formatSymbol(DateRepresentationInterface $input, FormatToken $token, FormatterInterface $formatter) |
||
42 | } |
||
43 | } |
||
45 |