Use immutable date/time objects.

This commit is contained in:
Yorin Anne De Jong 2016-08-15 20:03:00 +02:00
parent 976da028e5
commit b19ef0e25b
1 changed files with 3 additions and 3 deletions

View File

@ -1,12 +1,12 @@
<?php //declare(strict_types=1);
namespace pvv\side;
use \DateTime;
use \DateTimeImmutable;
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 */;
}