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

        $left  = $data['left'];
        $right = $data['right'];

        if (!isset($this->_result[$left])) {
            $this->_result[$left] = [];
        }
        if (!isset($this->_result[$left][$right])) {
            $this->_result[$left][$right] = [];
        }

        foreach ($data['neighbors'] as $neighbor) {
            $this->_result[$left][$right][] = $_documentClass::createFromArray($neighbor);
        }
    }
private function addCommonNeighborsFromArray(array $data)
    {
        $_documentClass = $this->_documentClass;

        $left  = $data['left'];
        $right = $data['right'];

        if (!isset($this->_result[$left])) {
            $this->_result[$left] = [];
        }
        if (!isset($this->_result[$left][$right])) {
            $this->_result[$left][$right] = [];
        }

        foreach ($data['neighbors'] as $neighbor) {
            $this->_result[$left][$right][] = $_documentClass::createFromArray($neighbor);
        }
    }
private function addCommonNeighborsFromArray ( array $ data ) { $ _documentClass = $ this -> _documentClass ; $ left = $ data [ 'left' ] ; $ right = $ data [ 'right' ] ; if ( ! isset ( $ this -> _result [ $ left ] ) ) { $ this -> _result [ $ left ] = [ ] ; } if ( ! isset ( $ this -> _result [ $ left ] [ $ right ] ) ) { $ this -> _result [ $ left ] [ $ right ] = [ ] ; } foreach ( $ data [ 'neighbors' ] as $ neighbor ) { $ this -> _result [ $ left ] [ $ right ] [ ] = $ _documentClass :: createFromArray ( $ neighbor ) ; } }
Create an array of common neighbors from the input array

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

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