PHP Conference Japan 2024

DateRangeError 類別

(PHP 8 >= 8.3.0)

簡介

在 32 位元平台上,如果日期物件表示的日期超出 32 位元帶符號整數範圍,則由 DateTime::getTimestamp()DateTimeImmutable::getTimestamp()date_timestamp_get() 拋出。

類別概要

class DateRangeError extends DateError {
/* 繼承的屬性 */
protected string $message = "";
private string $string = "";
protected int $code;
保護的 字串 $file = "";
保護的 整數 $line;
私有的 陣列 $trace = [];
私有的 ?Throwable $previous = null;
/* 繼承的方法 */
公開的 Error::__construct(字串 $message = "", 整數 $code = 0, ?Throwable $previous = null)
最終 公開的 Error::getMessage(): 字串
最終 公開的 Error::getPrevious(): ?Throwable
最終 公開的 Error::getCode(): 整數
最終 公開的 Error::getFile(): 字串
最終 公開的 Error::getLine(): 整數
最終 公開的 Error::getTrace(): 陣列
最終 公開的 Error::getTraceAsString(): 字串
私有的 Error::__clone():
}
新增註解

使用者貢獻的註解

此頁面尚無使用者提供的註釋。
To Top