public function dateIsEarlier(\DateTime $date) {
    $dateEarlier = FALSE;

    $t1 = $this->start_date->getTimeStamp();

    $t3 = $date->getTimeStamp();

    if ($t3 < $t1) {
      $dateEarlier = TRUE;
    }

    return $dateEarlier;
  }
public function dateIsEarlier(\DateTime $date) {
    $dateEarlier = FALSE;

    $t1 = $this->start_date->getTimeStamp();

    $t3 = $date->getTimeStamp();

    if ($t3 < $t1) {
      $dateEarlier = TRUE;
    }

    return $dateEarlier;
  }
public function dateIsEarlier ( \ DateTime $ date ) { $ dateEarlier = FALSE ; $ t1 = $ this -> start_date -> getTimeStamp ( ) ; $ t3 = $ date -> getTimeStamp ( ) ; if ( $ t3 < $ t1 ) { $ dateEarlier = TRUE ; } return $ dateEarlier ; }
Checks if the date supplied starts earlier than our event
@param \DateTime $date
@return bool
Checks if the date supplied starts earlier than our event