Esempio n. 1
0
 public function getStartTimestamp()
 {
     if ($this->startDate) {
         return strval($this->startDate->getTimestamp());
     } else {
         return "";
     }
 }
Esempio n. 2
0
 /**
  * check if check is still valid
  *
  * @param string $consumerScoreCheckLifetime
  * @param string $moptPayoneConsumerScoreCheckResult
  * @param date $moptPayoneConsumerScoreCheckDate
  * @return boolean 
  */
 public function isCosumerScoreCheckValid($consumerScoreCheckLifetime, $moptPayoneConsumerScoreCheckResult, $moptPayoneConsumerScoreCheckDate)
 {
     if (!$moptPayoneConsumerScoreCheckDate) {
         return false;
     }
     if ($moptPayoneConsumerScoreCheckDate->getTimestamp() < strtotime('-' . $consumerScoreCheckLifetime . ' days')) {
         return false;
     }
     return true;
 }
 public function getStartTimestamp()
 {
     return strval($this->startDate->getTimestamp());
 }