src/Index/Index.php
public function setDefinition(string $fqn, Definition $definition)
    {
        $parts = $this->splitFqn($fqn);
        $this->indexDefinition(0, $parts, $this->definitions, $definition);

        $this->emit('definition-added');
    }
public function setDefinition(string $fqn, Definition $definition)
    {
        $parts = $this->splitFqn($fqn);
        $this->indexDefinition(0, $parts, $this->definitions, $definition);

        $this->emit('definition-added');
    }
public function setDefinition ( string $ fqn , Definition $ definition ) { $ parts = $ this -> splitFqn ( $ fqn ) ; $ this -> indexDefinition ( 0 , $ parts , $ this -> definitions , $ definition ) ; $ this -> emit ( 'definition-added' ) ; }
Registers a definition

@param string $fqn The fully qualified name of the symbol
@param Definition $definition The Definition object
@return void
Registers a definition