Skip to content

Commit af3bdcf

Browse files
authored
Add __toString to DateRangeInterface (#5)
1 parent cfa2d22 commit af3bdcf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/DateRangeInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
*/
1818
interface DateRangeInterface
1919
{
20+
/**
21+
* Returns string representation of range.
22+
*
23+
* {@inheritdoc}
24+
*/
25+
public function __toString(): string;
26+
2027
/**
2128
* Returns whether the starting time is defined.
2229
*

0 commit comments

Comments
 (0)