DateTime::__wakeup
PHP Manual
PHP Manual»DateTimeInterface»DateTime::__wakeup

DateTime::__wakeup

DateTimeImmutable::__wakeup

DateTimeInterface::__wakeup

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

DateTime::__wakeup -- DateTimeImmutable::__wakeup -- DateTimeInterface::__wakeup — __wakeup ハンドラ

警告

この関数は PHP 8.5.0 で 非推奨になります。この関数に頼らないことを強く推奨します。

説明

#[\Deprecated(
    since: '8.5',
    message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()',
)]

public function DateTime::__wakeup(): void
#[\Deprecated(
    since: '8.5',
    message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()',
)]

public function DateTimeImmutable::__wakeup(): void
#[\Deprecated(
    since: '8.5',
    message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()',
)]

public function DateTimeInterface::__wakeup(): void

__wakeup() を処理します。

パラメータ

この関数にはパラメータはありません。

戻り値

DateTime オブジェクトを初期化します。

To Top