Exemplo n.º 1
0
 /**
  * @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;
 }