diff --git a/var/Widget/Base/Contents.php b/var/Widget/Base/Contents.php index b8f59545..91238962 100644 --- a/var/Widget/Base/Contents.php +++ b/var/Widget/Base/Contents.php @@ -70,6 +70,9 @@ if (!defined('__TYPECHO_ROOT_DIR__')) { * @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 @@ class Contents extends Base implements QueryInterface, RowFilterInterface, Prima { 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; + } }