From d84e261f7b9ed10c74e792edc596a18cf5a3ab47 Mon Sep 17 00:00:00 2001 From: Luffy <52o@qq52o.cn> Date: Wed, 28 Feb 2024 10:57:47 +0800 Subject: [PATCH] Fix missing get date (#1740) --- var/Widget/Base/Contents.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/var/Widget/Base/Contents.php b/var/Widget/Base/Contents.php index b8f595459b..9123896244 100644 --- a/var/Widget/Base/Contents.php +++ b/var/Widget/Base/Contents.php @@ -70,6 +70,9 @@ * @property-read string $commentUrl * @property-read string $trackbackUrl * @property-read string $responseUrl + * @property-read string $year + * @property-read string $month + * @property-read string $day */ class Contents extends Base implements QueryInterface, RowFilterInterface, PrimaryKeyInterface, ParamsDelegateInterface { @@ -923,4 +926,28 @@ protected function ___responseUrl(): string { return $this->permalink . '#' . $this->respondId; } + + /** + * @return string + */ + protected function ___year(): string + { + return $this->date->year; + } + + /** + * @return string + */ + protected function ___month(): string + { + return $this->date->month; + } + + /** + * @return string + */ + protected function ___day(): string + { + return $this->date->day; + } }