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

heimrichhannot / contao-utils-bundle / 13951376717

19 Mar 2025 04:12PM UTC coverage: 79.32% (+5.6%) from 73.745%
13951376717

push

github

web-flow
Forwardport #87 (#93)

* forwardport #87

* updated tests

* refactored some deprecated code into finder

* fix phpstan reports

* update tests

* add more test coverage

* raise test coveage

* fix bug

---------

Co-authored-by: DDEV User <nobody@example.com>

142 of 178 new or added lines in 6 files covered. (79.78%)

2 existing lines in 1 file now uncovered.

1097 of 1383 relevant lines covered (79.32%)

3.28 hits per line

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

40.0
/src/EntityFinder/Element.php
1
<?php
2

3
namespace HeimrichHannot\UtilsBundle\EntityFinder;
4

5
class Element
6
{
7

8
    /**
9
     * @param iterable|null $parents A closure that returns an iterator of parent elements
10
     */
11
    public function __construct(
12
        public readonly int     $id,
13
        public readonly string  $table,
14
        public readonly ?string $description = null,
15
        public readonly ?iterable $parents = null
16
    )
17
    {
18
    }
7✔
19

20
    /**
21
     * @deprecated
22
     */
23
    public function getId(): int
24
    {
NEW
25
        return $this->id;
×
26
    }
27

28
    /**
29
     * @deprecated
30
     */
31
    public function getTable(): string
32
    {
NEW
33
        return $this->table;
×
34
    }
35

36
    /**
37
     * @deprecated
38
     */
39
    public function getDescription(): ?string
40
    {
NEW
41
        return $this->description;
×
42
    }
43

44
    public function getParents(): ?iterable
45
    {
46
        return $this->parents;
6✔
47
    }
48
}
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