public function getSessionsByProgramAndLocation($program_id, $location_id) {
    $cid = __METHOD__ . $program_id . $location_id;
    if ($cache = $this->cache->get($cid)) {
      return $cache->data;
    }

    $params = [
      'program' => $program_id,
      'branch' => $location_id,
    ];

    $data = $this->client->getSessions($params);

    $this->cache->set($cid, $data);
    return $data;
  }
public function getSessionsByProgramAndLocation($program_id, $location_id) {
    $cid = __METHOD__ . $program_id . $location_id;
    if ($cache = $this->cache->get($cid)) {
      return $cache->data;
    }

    $params = [
      'program' => $program_id,
      'branch' => $location_id,
    ];

    $data = $this->client->getSessions($params);

    $this->cache->set($cid, $data);
    return $data;
  }
public function getSessionsByProgramAndLocation ( $ program_id , $ location_id ) { $ cid = __METHOD__ . $ program_id . $ location_id ; if ( $ cache = $ this -> cache -> get ( $ cid ) ) { return $ cache -> data ; } $ params = [ 'program' => $ program_id , 'branch' => $ location_id , ] ; $ data = $ this -> client -> getSessions ( $ params ) ; $ this -> cache -> set ( $ cid , $ data ) ; return $ data ; }
Get sessions by Program ID & Location ID.

@param int $program_id
Program ID.
@param int $location_id
Location ID.

@return array
List of sessions.
Get sessions by Program ID & Location ID .