tree = $tree; $this->dimensions = $tree->getDimensionCount(); } /** * Search items it the tree by given algorithm * * @api * @param PointInterface $point * @param int $resultLength * @return array */ abstract public function search(PointInterface $point, int $resultLength = 1) : array; }