| 1 | <?php |
||
| 16 | class DateFactory |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * The application timezone. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $appTimezone; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The gitamin timezone. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $gitaminTimezone; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Create a new date factory instance. |
||
| 34 | * |
||
| 35 | * @param string $appTimezone |
||
| 36 | * @param string $gitaminTimezone |
||
| 37 | */ |
||
| 38 | public function __construct($appTimezone, $gitaminTimezone) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Create a Carbon instance from a specific format. |
||
| 46 | * |
||
| 47 | * @param string $format |
||
| 48 | * @param string $time |
||
| 49 | * |
||
| 50 | * @throws \InvalidArgumentException |
||
| 51 | * |
||
| 52 | * @return \Carbon\Carbon |
||
| 53 | */ |
||
| 54 | public function create($format, $time) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Create a Carbon instance from a specific format. |
||
| 61 | * |
||
| 62 | * We're also going to make sure the timezone information is correct. |
||
| 63 | * |
||
| 64 | * @param string $format |
||
| 65 | * @param string $time |
||
| 66 | * |
||
| 67 | * @throws \InvalidArgumentException |
||
| 68 | * |
||
| 69 | * @return \Carbon\Carbon |
||
| 70 | */ |
||
| 71 | public function createNormalized($format, $time) |
||
| 75 | } |
||
| 76 |