public function buildResult($result)
    {
        $updates = [];

        foreach ($result as $updateData) {
            $update = new Update($updateData);
            $updates[] = $update;
            $this->lastUpdateId = max($this->lastUpdateId, $update->updateId);
        }

        return $updates;
    }
public function buildResult($result)
    {
        $updates = [];

        foreach ($result as $updateData) {
            $update = new Update($updateData);
            $updates[] = $update;
            $this->lastUpdateId = max($this->lastUpdateId, $update->updateId);
        }

        return $updates;
    }
public function buildResult ( $ result ) { $ updates = [ ] ; foreach ( $ result as $ updateData ) { $ update = new Update ( $ updateData ) ; $ updates [ ] = $ update ; $ this -> lastUpdateId = max ( $ this -> lastUpdateId , $ update -> updateId ) ; } return $ updates ; }
Build result type from array of data.

@param array $result

@return Update[]
Build result type from array of data .