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

heimrichhannot / contao-utils-bundle / 13947257304

19 Mar 2025 01:05PM UTC coverage: 72.524% (-1.2%) from 73.745%
13947257304

Pull #93

github

koertho
update tests
Pull Request #93: Forwardport #87

85 of 229 new or added lines in 6 files covered. (37.12%)

2 existing lines in 1 file now uncovered.

1040 of 1434 relevant lines covered (72.52%)

3.11 hits per line

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

33.33
/src/Event/EntityFinderFindEvent.php
1
<?php
2

3
namespace HeimrichHannot\UtilsBundle\Event;
4

5
use HeimrichHannot\UtilsBundle\EntityFinder\Element;
6
use Symfony\Contracts\EventDispatcher\Event;
7

8
class EntityFinderFindEvent extends Event
9
{
10
    private ?Element $element = null;
11

12
    public function __construct(
13
        public readonly string $table,
14
        public readonly int $id
15
    ) {
16
    }
3✔
17

18
    /**
19
     * @deprecated
20
     */
21
    public function getTable(): string
22
    {
NEW
23
        return $this->table;
×
24
    }
25

26
    /**
27
     * @deprecated
28
     */
29
    public function getId(): int
30
    {
NEW
31
        return $this->id;
×
32
    }
33

34
    public function setElement(Element $element): void
35
    {
NEW
36
        $this->element = $element;
×
NEW
37
        $this->stopPropagation();
×
38
    }
39

40
    public function getElement(): ?Element
41
    {
42
        return $this->element;
3✔
43
    }
44

45

46

47
}
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