예제 #1
0
파일: Lot.php 프로젝트: junjinZ/wealthbot
 /**
  * @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;
 }