1 | <?php |
||
7 | abstract class AbstractDateTimeTransformer implements TransformerInterface |
||
8 | { |
||
9 | /** |
||
10 | * The name of the input timezone. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $inputTimezone; |
||
15 | |||
16 | /** |
||
17 | * The name of the output timezone. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $outputTimezone; |
||
22 | |||
23 | /** |
||
24 | * @param string $inputTimezone The name of the input timezone |
||
25 | * @param string $outputTimezone The name of the output timezone |
||
26 | * |
||
27 | * @throws UnexpectedTypeException If a timezone is not a string |
||
28 | * @throws \InvalidArgumentException If a timezone is invalid |
||
29 | */ |
||
30 | 66 | public function __construct($inputTimezone = null, $outputTimezone = null) |
|
54 | } |
||
55 |