示例#1
0
文件: Lot.php 项目: junjinZ/wealthbot
 /**
  * @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;
 }