Use immutable date/time objects.
This commit is contained in:
parent
976da028e5
commit
b19ef0e25b
|
@ -1,12 +1,12 @@
|
||||||
<?php //declare(strict_types=1);
|
<?php //declare(strict_types=1);
|
||||||
namespace pvv\side;
|
namespace pvv\side;
|
||||||
|
|
||||||
use \DateTime;
|
use \DateTimeImmutable;
|
||||||
|
|
||||||
interface RepeatingActivity extends Activity {
|
interface RepeatingActivity extends Activity {
|
||||||
|
|
||||||
public function getNextEventFrom(DateTime $date) /* : Event */;
|
public function getNextEventFrom(DateTimeImmutable $date) /* : Event */;
|
||||||
|
|
||||||
public function getPreviousEventFrom(DateTime $date) /* : Event */;
|
public function getPreviousEventFrom(DateTimeImmutable $date) /* : Event */;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue