/** * @return bool */ public function isShortTerm() { $today = new \DateTime(); if ($this->getInitial()) { $difference = $today->diff($this->initial->getDate()); } else { $difference = $today->diff($this->getDate()); } return $difference->d <= 365; }