src/Yandex/Metrica/Management/GoalsClient.php
public function getGoals($counterId)
    {
        $resource = 'counter/' . $counterId . '/goals';
        $response = $this->sendGetRequest($resource);
        $goalResponse = new Models\GetGoalsResponse($response);
        return $goalResponse->getGoals();
    }
public function getGoals($counterId)
    {
        $resource = 'counter/' . $counterId . '/goals';
        $response = $this->sendGetRequest($resource);
        $goalResponse = new Models\GetGoalsResponse($response);
        return $goalResponse->getGoals();
    }
public function getGoals ( $ counterId ) { $ resource = 'counter/' . $ counterId . '/goals' ; $ response = $ this -> sendGetRequest ( $ resource ) ; $ goalResponse = new Models \ GetGoalsResponse ( $ response ) ; return $ goalResponse -> getGoals ( ) ; }
Get counter goals

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

@param int $counterId
@return Models\Goals
Get counter goals