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

    $data = $this->client->getPrograms(['branch' => $location_id]);

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

    $data = $this->client->getPrograms(['branch' => $location_id]);

    $this->cache->set($cid, $data);
    return $data;
  }
public function getProgramsByLocation ( $ location_id ) { $ cid = __METHOD__ . $ location_id ; if ( $ cache = $ this -> cache -> get ( $ cid ) ) { return $ cache -> data ; } $ data = $ this -> client -> getPrograms ( [ 'branch' => $ location_id ] ) ; $ this -> cache -> set ( $ cid , $ data ) ; return $ data ; }
Get programs by Location ID.

@param int $location_id
Location ID.

@return array
List of programs.
Get programs by Location ID .