コード例 #1
0
ファイル: Date.php プロジェクト: bullhorn/fast-rest
 /**
  * Getter
  * @param Date $otherDate
  * @return bool
  */
 public function isGreaterThan(Date $otherDate)
 {
     return $this->__toString() > $otherDate->__toString();
 }
コード例 #2
0
ファイル: Formatter.php プロジェクト: bullhorn/fast-rest
 /**
  * Formats a date
  *
  * @param Date $input
  *
  * @return string
  */
 public function formatDate(Date $input)
 {
     return $input->format($this->getCurrentFormat());
 }