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

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

@param int $id
@param int $counterId
@return Models\Goal
Get counter goal