time = $t; $this->entity = $d; } public function getOccuringTime(): \DateTimeInterface { return $time->getFrom(); } public function diff(DiffInterface $d): bool { if ($d instanceof get_class($this->entity)) return $this->entity->diff($d); return false; } }