public function __construct(Index $index, SourceTree $tree) { $this->index = $index; $this->tree = $tree; }