src/Yandex/Metrica/Management/GoalsClient.php
public function updateGoal($id, $counterId, Models\Goal $goal)
    {
        $resource = 'counter/' . $counterId . '/goal/' . $id;
        $response = $this->sendPutRequest($resource, ["goal" => $goal->toArray()]);
        $goalResponse = new Models\UpdateGoalResponse($response);
        return $goalResponse->getGoal();
    }
public function updateGoal($id, $counterId, Models\Goal $goal)
    {
        $resource = 'counter/' . $counterId . '/goal/' . $id;
        $response = $this->sendPutRequest($resource, ["goal" => $goal->toArray()]);
        $goalResponse = new Models\UpdateGoalResponse($response);
        return $goalResponse->getGoal();
    }
public function updateGoal ( $ id , $ counterId , Models \ Goal $ goal ) { $ resource = 'counter/' . $ counterId . '/goal/' . $ id ; $ response = $ this -> sendPutRequest ( $ resource , [ "goal" => $ goal -> toArray ( ) ] ) ; $ goalResponse = new Models \ UpdateGoalResponse ( $ response ) ; return $ goalResponse -> getGoal ( ) ; }
Update counter goal

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

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