private function createClassItem(array $data) {
    $classItem = [
      'class_id' => $data['id'],
      'category' => $data['category'],
      'location' => $data['location'],
      'title' => $data['title'],
      'description' => $this->getDescription($data),
      'start_date' => $this->getStartDate($data),
      'end_date' => $this->getEndDate($data),
      'recurring' => 'weekly',
      'studio' => $data['studio'],
      'instructor' => strip_tags($data['instructor']),
      'patterns' => [
        'day' => $this->getDay($data),
        'start_time' => $this->getStartTime($data),
        'end_time' => $this->getEndTime($data),
      ],
    ];

    return $classItem;
  }
private function createClassItem(array $data) {
    $classItem = [
      'class_id' => $data['id'],
      'category' => $data['category'],
      'location' => $data['location'],
      'title' => $data['title'],
      'description' => $this->getDescription($data),
      'start_date' => $this->getStartDate($data),
      'end_date' => $this->getEndDate($data),
      'recurring' => 'weekly',
      'studio' => $data['studio'],
      'instructor' => strip_tags($data['instructor']),
      'patterns' => [
        'day' => $this->getDay($data),
        'start_time' => $this->getStartTime($data),
        'end_time' => $this->getEndTime($data),
      ],
    ];

    return $classItem;
  }
private function createClassItem ( array $ data ) { $ classItem = [ 'class_id' => $ data [ 'id' ] , 'category' => $ data [ 'category' ] , 'location' => $ data [ 'location' ] , 'title' => $ data [ 'title' ] , 'description' => $ this -> getDescription ( $ data ) , 'start_date' => $ this -> getStartDate ( $ data ) , 'end_date' => $ this -> getEndDate ( $ data ) , 'recurring' => 'weekly' , 'studio' => $ data [ 'studio' ] , 'instructor' => strip_tags ( $ data [ 'instructor' ] ) , 'patterns' => [ 'day' => $ this -> getDay ( $ data ) , 'start_time' => $ this -> getStartTime ( $ data ) , 'end_time' => $ this -> getEndTime ( $ data ) , ] , ] ; return $ classItem ; }
Creates class item from provided data.

@param array $data
Class item data from embed API.

@return array
Class item compatible with syncer.

@throws \Exception
Creates class item from provided data .