src/Index/Index.php
public function addReferenceUri(string $fqn, string $uri)
    {
        if (!isset($this->references[$fqn])) {
            $this->references[$fqn] = [];
        }
        // TODO: use DS\Set instead of searching array
        if (array_search($uri, $this->references[$fqn], true) === false) {
            $this->references[$fqn][] = $uri;
        }
    }
public function addReferenceUri(string $fqn, string $uri)
    {
        if (!isset($this->references[$fqn])) {
            $this->references[$fqn] = [];
        }
        // TODO: use DS\Set instead of searching array
        if (array_search($uri, $this->references[$fqn], true) === false) {
            $this->references[$fqn][] = $uri;
        }
    }
public function addReferenceUri ( string $ fqn , string $ uri ) { if ( ! isset ( $ this -> references [ $ fqn ] ) ) { $ this -> references [ $ fqn ] = [ ] ; } // TODO: use DS\Set instead of searching array if ( array_search ( $ uri , $ this -> references [ $ fqn ] , true ) === false ) { $ this -> references [ $ fqn ] [ ] = $ uri ; } }
Adds a document URI as a referencee of a specific symbol

@param string $fqn The fully qualified name of the symbol
@return void
Adds a document URI as a referencee of a specific symbol