Ejemplo n.º 1
0
 /**
  * This does not extend the subscription period - it only gives a potential new endDate
  *
  * @param PcSubscriptionType $subscriptionType
  * @param string $startDate (in the form YYYY-mm-dd) - the date from when to start the new subscription period
  * @return integer (timestamp)
  */
 public function getNewExpiryDateAfterSubscription(PcSubscriptionType $subscriptionType, $startDate)
 {
     list($startDateYear, $startDateMonth, $startDateDay) = explode('-', $startDate);
     $startDateTimeStamp = mktime(0, 0, 0, $startDateMonth, $startDateDay, $startDateYear);
     return strtotime($subscriptionType->getExpirationTimeExpression(), $startDateTimeStamp);
 }