| 1 | <?php |
||
| 20 | class DateTimeType extends Carbon implements TypeInterface |
||
| 21 | { |
||
| 22 | use Boxable; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string|null $time |
||
| 26 | * @param \DateTimezone|string|null $tz |
||
| 27 | */ |
||
| 28 | 20 | public function __construct(string $time = null, $tz = null) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | * |
||
| 36 | * @return DateTimeType |
||
| 37 | */ |
||
| 38 | 7 | public static function valueOf($mixed): DateTimeType |
|
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | * |
||
| 50 | * @return string|DateTimeType |
||
| 51 | */ |
||
| 52 | 6 | public function __invoke(int $toType = null) |
|
| 64 | } |
||
| 65 |