private function nullDateIfLowerThanToday(\DateTime $eda = null)
    {
        if (null === $eda) {
            return null;
        }

        $today = new \DateTime();
        $today->setTime(0, 0, 0);

        if ($eda < $today) {
            return null;
        }

        return $eda;
    }