private function addPathsFromArray(array $data)
    {
        $_documentClass = $this->_documentClass;
        $_edgeClass = $this->_edgeClass;

        $entry = [
            'vertices'    => [],
            'edges'       => [],
            'source'      => $_documentClass::createFromArray($data['source'], $this->_options),
            'destination' => $_documentClass::createFromArray($data['destination'], $this->_options),
        ];
        foreach ($data['vertices'] as $v) {
            $entry['vertices'][] = $_documentClass::createFromArray($v, $this->_options);
        }
        foreach ($data['edges'] as $v) {
            $entry['edges'][] = $_edgeClass::createFromArray($v, $this->_options);
        }
        $this->_result[] = $entry;
    }
private function addPathsFromArray(array $data)
    {
        $_documentClass = $this->_documentClass;
        $_edgeClass = $this->_edgeClass;

        $entry = [
            'vertices'    => [],
            'edges'       => [],
            'source'      => $_documentClass::createFromArray($data['source'], $this->_options),
            'destination' => $_documentClass::createFromArray($data['destination'], $this->_options),
        ];
        foreach ($data['vertices'] as $v) {
            $entry['vertices'][] = $_documentClass::createFromArray($v, $this->_options);
        }
        foreach ($data['edges'] as $v) {
            $entry['edges'][] = $_edgeClass::createFromArray($v, $this->_options);
        }
        $this->_result[] = $entry;
    }
private function addPathsFromArray ( array $ data ) { $ _documentClass = $ this -> _documentClass ; $ _edgeClass = $ this -> _edgeClass ; $ entry = [ 'vertices' => [ ] , 'edges' => [ ] , 'source' => $ _documentClass :: createFromArray ( $ data [ 'source' ] , $ this -> _options ) , 'destination' => $ _documentClass :: createFromArray ( $ data [ 'destination' ] , $ this -> _options ) , ] ; foreach ( $ data [ 'vertices' ] as $ v ) { $ entry [ 'vertices' ] [ ] = $ _documentClass :: createFromArray ( $ v , $ this -> _options ) ; } foreach ( $ data [ 'edges' ] as $ v ) { $ entry [ 'edges' ] [ ] = $ _edgeClass :: createFromArray ( $ v , $ this -> _options ) ; } $ this -> _result [ ] = $ entry ; }
Create an array of paths from the input array

@param array $data - array of incoming "paths" arrays

@return void
@throws \ArangoDBClient\ClientException
Create an array of paths from the input array