public static function getFacilityCheckIns($memberId, $startDate, $endDate) {
    return \Drupal::entityQuery('openy_campaign_member_checkin')
      ->condition('member', $memberId)
      ->condition('date', $startDate->format('U'), '>=')
      ->condition('date', $endDate->format('U'), '<')
      ->execute();
  }
public static function getFacilityCheckIns($memberId, $startDate, $endDate) {
    return \Drupal::entityQuery('openy_campaign_member_checkin')
      ->condition('member', $memberId)
      ->condition('date', $startDate->format('U'), '>=')
      ->condition('date', $endDate->format('U'), '<')
      ->execute();
  }
public static function getFacilityCheckIns ( $ memberId , $ startDate , $ endDate ) { return \ Drupal :: entityQuery ( 'openy_campaign_member_checkin' ) -> condition ( 'member' , $ memberId ) -> condition ( 'date' , $ startDate -> format ( 'U' ) , '>=' ) -> condition ( 'date' , $ endDate -> format ( 'U' ) , '<' ) -> execute ( ) ; }
Get Member check-ins for a period.

@param int $memberId
Member id.
@param \DateTime $startDate
@param \DateTime $endDate

@return array|int
Get Member check - ins for a period .