src/Yandex/Metrica/Management/FiltersClient.php
public function addFilter($counterId, Models\Filter $filter)
    {
        $resource = 'counter/' . $counterId . '/filters';
        $response = $this->sendPostRequest($resource, ["filter" => $filter->toArray()]);
        $filterResponse = new Models\AddFilterResponse($response);
        return $filterResponse->getFilter();
    }
public function addFilter($counterId, Models\Filter $filter)
    {
        $resource = 'counter/' . $counterId . '/filters';
        $response = $this->sendPostRequest($resource, ["filter" => $filter->toArray()]);
        $filterResponse = new Models\AddFilterResponse($response);
        return $filterResponse->getFilter();
    }
public function addFilter ( $ counterId , Models \ Filter $ filter ) { $ resource = 'counter/' . $ counterId . '/filters' ; $ response = $ this -> sendPostRequest ( $ resource , [ "filter" => $ filter -> toArray ( ) ] ) ; $ filterResponse = new Models \ AddFilterResponse ( $ response ) ; return $ filterResponse -> getFilter ( ) ; }
Add filter to counter

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

@param int $counterId
@param Models\Filter $filter
@return array
Add filter to counter