private function getSessionExclusions(array $class) {
    $exclusions = [];
    if (isset($class['exclusions'])) {
      foreach ($class['exclusions'] as $exclusion) {
        $exclusionStart = (new \DateTime($exclusion . '00:00:00'))->format('Y-m-d\TH:i:s');
        $exclusionEnd = (new \DateTime($exclusion . '24:00:00'))->format('Y-m-d\TH:i:s');
        $exclusions[] = [
          'value' => $exclusionStart,
          'end_value' => $exclusionEnd,
        ];
      }
    }

    return $exclusions;
  }
private function getSessionExclusions(array $class) {
    $exclusions = [];
    if (isset($class['exclusions'])) {
      foreach ($class['exclusions'] as $exclusion) {
        $exclusionStart = (new \DateTime($exclusion . '00:00:00'))->format('Y-m-d\TH:i:s');
        $exclusionEnd = (new \DateTime($exclusion . '24:00:00'))->format('Y-m-d\TH:i:s');
        $exclusions[] = [
          'value' => $exclusionStart,
          'end_value' => $exclusionEnd,
        ];
      }
    }

    return $exclusions;
  }
private function getSessionExclusions ( array $ class ) { $ exclusions = [ ] ; if ( isset ( $ class [ 'exclusions' ] ) ) { foreach ( $ class [ 'exclusions' ] as $ exclusion ) { $ exclusionStart = ( new \ DateTime ( $ exclusion . '00:00:00' ) ) -> format ( 'Y-m-d\TH:i:s' ) ; $ exclusionEnd = ( new \ DateTime ( $ exclusion . '24:00:00' ) ) -> format ( 'Y-m-d\TH:i:s' ) ; $ exclusions [ ] = [ 'value' => $ exclusionStart , 'end_value' => $ exclusionEnd , ] ; } } return $ exclusions ; }
Get session exclusions.

@param array $class
Class properties.

@return array
Exclusions.

@throws \Exception
Get session exclusions .