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