• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tito10047 / type-safe-id-bundle / 23164628533

16 Mar 2026 08:31PM UTC coverage: 78.621% (-3.8%) from 82.443%
23164628533

push

github

tito10047
change multiple servises to one global

15 of 21 new or added lines in 3 files covered. (71.43%)

2 existing lines in 1 file now uncovered.

114 of 145 relevant lines covered (78.62%)

24.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/IdGenerator/TypeIdGenerator.php
1
<?php
2

3
namespace Tito10047\TypeSafeIdBundle\IdGenerator;
4

5
use Doctrine\ORM\EntityManager;
6
use Doctrine\ORM\EntityManagerInterface;
7
use Doctrine\ORM\Id\AbstractIdGenerator;
8
use Tito10047\TypeSafeIdBundle\GeneratableId;
9

10
final class TypeIdGenerator extends AbstractIdGenerator
11
{
12
    private string $typeClass;
13

14
    public function __construct(string $typeClass)
15
    {
UNCOV
16
        $this->typeClass = $typeClass;
×
17
    }
18

19
    /**
20
     * doctrine/orm < 2.11 BC layer.
21
     */
22
    public function generate(EntityManager $em, $entity): mixed
23
    {
24
        return $this->generateId($em, $entity);
×
25
    }
26

27
    public function generateId(EntityManagerInterface $em, $entity): GeneratableId
28
    {
UNCOV
29
        return $this->typeClass::new();
×
30
    }
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc