Lines 100.00% 2 / 2
Functions and Methods 100.00% 2 / 2
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
EntitySelection 100.00% 2 / 2 100.00% 2 / 2 2 100.00% 1 / 1
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
 listEntityIds 100.00% 1 / 1 100.00% 1 / 1 1
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Codegen\Entity;
6
7use Stewart\Contracts\Entity\Collection\EntityIdCollection;
8use Stewart\Contracts\State\Collection\EntityStateCollection;
9
10final readonly class EntitySelection
11{
12    public function __construct(
13        public EntityStateCollection $generated,
14        public EntityIdCollection $ignored,
15    ) {}
16
17    public function listEntityIds(): EntityIdCollection
18    {
19        return $this->generated->listEntityIds();
20    }
21}