27 $time = $this->
time ? $this->
time :
new DateTime();
30 $time->modify($modifier);
43 $time =
new DateTime();
45 $this->
time = clone $time;
setCurrentTime(DateTime $time=null)
Set the current time.
getCurrentTime($modifier='')
Get the (cloned) time.
trait TimeUsing
Adds methods for setting the current time (for testing)