| Total Complexity | 8 | 
| Total Lines | 48 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 10 | class BinaryTreeFactory  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * @TODO write example regarding expecting list format !  | 
            ||
| 14 | *  | 
            ||
| 15 | * @template TNode of Node The actual Node class  | 
            ||
| 16 | * @template TValue of mixed The actual Node value type  | 
            ||
| 17 | *  | 
            ||
| 18 | *  | 
            ||
| 19 | * @param mixed[] $list ⚠ Must be a 0 indexed list, 0 to n consecutive indexes  | 
            ||
| 20 | * @phpstan-param list<TValue|null> $list  | 
            ||
| 21 | * @phpstan-param callable(TValue $v): TNode $nodeCreator  | 
            ||
| 22 | *  | 
            ||
| 23 | * @phpstan-return ?TNode  | 
            ||
| 24 | */  | 
            ||
| 25 | 5 | public static function fromLevelOrderList(array $list, callable $nodeCreator): ?Node  | 
            |
| 60 |