Beispiel #1
0
 /**
  * @return bool
  */
 public function isShortTerm()
 {
     $today = new \DateTime();
     if ($this->isInitial()) {
         $difference = $today->diff($this->getDate());
     } else {
         $difference = $today->diff($this->initial->getDate());
     }
     return $difference->days <= 365;
 }