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
TreenodeDtoOrdered
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
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace pvc\struct\tree\dto;
6
7/**
8 * @template PayloadType
9 * @extends TreenodeDtoUnordered<PayloadType>
10 */
11readonly class TreenodeDtoOrdered extends TreenodeDtoUnordered
12{
13    /**
14     * @param non-negative-int $nodeId
15     * @param non-negative-int|null $parentId
16     * @param non-negative-int|null $treeId
17     * @param int $index
18     */
19    public function __construct(
20        int   $nodeId,
21        ?int  $parentId,
22        ?int  $treeId,
23
24        /**
25         * @var non-negative-int
26         */
27        public int   $index,
28    )
29    {
30        parent::__construct($nodeId, $parentId, $treeId);
31    }
32}