protected function morphingTime($entity) { if ($entity instanceof PolymorphableInterface) { return $entity->polymorph(); } return $entity; }