public function getStartTimestamp() { if ($this->startDate) { return strval($this->startDate->getTimestamp()); } else { return ""; } }
/** * 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()); }