protected function buildDistanceMatrixRow($row)
    {
        $elements = array();

        foreach ($row->elements as $element) {
            $elements[] = $this->buildDistanceMatrixResponseElement($element);
        }

        return new DistanceMatrixResponseRow($elements);
    }
protected function buildDistanceMatrixRow($row)
    {
        $elements = array();

        foreach ($row->elements as $element) {
            $elements[] = $this->buildDistanceMatrixResponseElement($element);
        }

        return new DistanceMatrixResponseRow($elements);
    }
protected function buildDistanceMatrixRow ( $ row ) { $ elements = array ( ) ; foreach ( $ row -> elements as $ element ) { $ elements [ ] = $ this -> buildDistanceMatrixResponseElement ( $ element ) ; } return new DistanceMatrixResponseRow ( $ elements ) ; }
Builds a distance matrix response row according to the normalized distance matrix API response row.

@param \stdClass $row The normalized distance matrix response row.

@return \Ivory\GoogleMap\Services\DistanceMatrix\DistanceMatrixResponseRow The built distance matrix response row.
Builds a distance matrix response row according to the normalized distance matrix API response row .