We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad61481 commit c7d84e4Copy full SHA for c7d84e4
src/Data/Story.php
@@ -89,9 +89,14 @@ public function name(): string
89
return $this->getString('name');
90
}
91
92
- public function createdAt(): null|string
+ public function createdAt(string $format = "Y-m-d"): null|string
93
{
94
- return $this->getFormattedDateTime('created_at', "", format: "Y-m-d");
+ return $this->getFormattedDateTime('created_at', "", format: $format);
95
+ }
96
+
97
+ public function publishedAt(string $format = "Y-m-d"): null|string
98
+ {
99
+ return $this->getFormattedDateTime('published_at', "", format: $format);
100
101
102
public function updatedAt(): null|string
0 commit comments