Get counter filter

@see http://api.yandex.ru/metrika/doc/beta/management/filters/filter.xml

@param int $id
@param int $counterId
@param array $params
@return array
328243
public function getFilter($id, $counterId, $params = [])
    {
        $resource = 'counter/' . $counterId . '/filter/' . $id;
        $response = $this->sendGetRequest($resource, $params);
        $filterResponse = new Models\GetFilterResponse($response);
        return $filterResponse->getFilter();
    }
284173
public function getAllForTimelogCategory(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::GET,
            ResourceMethodEnum::GET_ALL_FOR_TIMELOG_CATEGORY,
            $params,
            $id
        );
    }
668817
public function createForTask(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::POST,
            ResourceMethodEnum::CREATE_FOR_TASK,
            $params,
            $id
        );
    }
1165370
public function deleteGrant($counterId, $userLogin)
    {
        $resource = 'counter/' . $counterId . '/grant/' . $userLogin;
        $response = $this->sendDeleteRequest($resource);
        return $response;
    }
603993
protected function removeFilterByID($id)
    {
        $this->filters = array_filter($this->filters, function (AbstractFilter $filter) use ($id) {
            return $filter->getId() != $id;
        });
    }
94357
public function uploadForTask(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::UPLOAD,
            ResourceMethodEnum::UPLOAD_FOR_TASK,
            $params,
            $id
        );
    }
37864
public function getCard($id, array $params = array())
    {
        return $this->get($this->getPath().'/'.rawurlencode($id).'/card', $params);
    }
562778
public function getAllForFolder(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::GET,
            ResourceMethodEnum::GET_ALL_FOR_FOLDER,
            $params,
            $id
        );
    }
519081
public final function count($con, $id = null) {
        if ($con && !is_array($con)) {
            $con = [$this->primaryKeys[0] => $con];
        }
        $sql = $this->select();
        $sql->where($con);

        return $sql->count('*');
    }
289304
public CounterSnapshot getCounterSnapshot(String counterId) throws IOException {
    final CounterSnapshot snapshot = inMemSnapshot.getIfPresent(counterId);
    if (snapshot != null) {
      stats.recordCounterCacheHit();
      return snapshot;
    }
    stats.recordCounterCacheMiss();
    return refreshCounterSnapshot(counterId);
  }
133008
public function getItemByIdForDisplay(int $id = 0, array $params = [])
    {
        $item = $this->getItemById($id, $params);

        if ($item->id && ! $item->is_read) {
            $item->update([
                'is_read' => true,
            ]);
        }

        return $item;
    }
837075
public function getById(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::GET,
            ResourceMethodEnum::GET_BY_ID,
            $params,
            $id
        );
    }
1261269
Counter counter(Meter.Id id) {
        return registerMeterIfNecessary(Counter.class, id, this::newCounter, NoopCounter::new);
    }
604874
public function download(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::GET,
            ResourceMethodEnum::DOWNLOAD,
            $params,
            $id
        );
    }
259945
public function getOrganization($id, array $params = array())
    {
        return $this->get($this->getPath().'/'.rawurlencode($id).'/organization', $params);
    }
1098884
public function getAllForContact(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::GET,
            ResourceMethodEnum::GET_ALL_FOR_CONTACT,
            $params,
            $id
        );
    }
1292318
public static function find($id, array $params = [])
    {
        $instance = new static([], static::getParentID());

        return $instance->request($instance->getEndpoint(), 'find', [$id, $params]);
    }