public function startsEarlier(\DateTime $date) {
    $earlier = FALSE;

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

    $t3 = $date->getTimestamp();

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

    return $earlier;
  }
public function startsEarlier(\DateTime $date) {
    $earlier = FALSE;

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

    $t3 = $date->getTimestamp();

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

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