Skip to content

Commit

Permalink
Fix missing get date
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Feb 26, 2024
1 parent 0a40b1e commit c222df0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions var/Widget/Base/Contents.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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;
}
}

0 comments on commit c222df0

Please sign in to comment.