Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
TreenodeChildCollectionFactory | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
makeChildCollection | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace pvc\struct\tree\node; |
4 | |
5 | use pvc\interfaces\struct\tree\node\TreenodeChildCollectionFactoryInterface; |
6 | use pvc\interfaces\struct\tree\node\TreenodeChildCollectionInterface; |
7 | use pvc\interfaces\struct\tree\node\TreenodeInterface; |
8 | |
9 | /** |
10 | * @template TreenodeType of TreenodeInterface |
11 | * @implements TreenodeChildCollectionFactoryInterface<TreenodeType> |
12 | */ |
13 | class TreenodeChildCollectionFactory implements TreenodeChildCollectionFactoryInterface |
14 | { |
15 | |
16 | /** |
17 | * @return TreenodeChildCollectionInterface<TreenodeType> |
18 | */ |
19 | public function makeChildCollection(): TreenodeChildCollectionInterface |
20 | { |
21 | return new TreenodeChildCollection(); |
22 | } |
23 | } |