| Total Complexity | 9 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class Random implements BuilderInterface |
||
| 17 | { |
||
| 18 | 1 | public static function create(iterable $nodes): ?NodeInterface |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param array<int, class-string|callable():(NodeInterface)|mixed> $parameters |
||
|
|
|||
| 41 | */ |
||
| 42 | 1 | private static function createNode(array $parameters = []): NodeInterface |
|
| 63 | } |
||
| 64 | |||
| 65 | 1 | private static function pickRandomNode(NodeInterface $node): NodeInterface |
|
| 80 |