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

heimrichhannot / contao-utils-bundle / 13942910598

19 Mar 2025 09:16AM UTC coverage: 73.034% (-0.7%) from 73.745%
13942910598

Pull #93

github

koertho
updated tests
Pull Request #93: Forwardport #87

85 of 140 new or added lines in 6 files covered. (60.71%)

2 existing lines in 1 file now uncovered.

1040 of 1424 relevant lines covered (73.03%)

3.13 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