| Total Complexity | 1 | 
| Total Lines | 31 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 5 | abstract class SearchAbstract  | 
            ||
| 6 | { | 
            ||
| 7 | /**  | 
            ||
| 8 | * @var KDTreeInterface  | 
            ||
| 9 | */  | 
            ||
| 10 | protected $tree;  | 
            ||
| 11 | |||
| 12 | /**  | 
            ||
| 13 | * @var int  | 
            ||
| 14 | */  | 
            ||
| 15 | protected $dimensions;  | 
            ||
| 16 | |||
| 17 | /**  | 
            ||
| 18 | * SearchAbstract constructor.  | 
            ||
| 19 | * @param KDTreeInterface $tree  | 
            ||
| 20 | */  | 
            ||
| 21 | 42 | public function __construct(KDTreeInterface $tree)  | 
            |
| 25 | 42 | }  | 
            |
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * Search items it the tree by given algorithm  | 
            ||
| 29 | *  | 
            ||
| 30 | * @api  | 
            ||
| 31 | * @param PointInterface $point  | 
            ||
| 32 | * @param int $resultLength  | 
            ||
| 33 | * @return array  | 
            ||
| 34 | */  | 
            ||
| 35 | abstract public function search(PointInterface $point, int $resultLength = 1) : array;  | 
            ||
| 36 | }  | 
            ||
| 37 |