• 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

66.67
/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
    }
4✔
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
    {
36
        $this->element = $element;
1✔
37
        $this->stopPropagation();
1✔
38
    }
39

40
    public function getElement(): ?Element
41
    {
42
        return $this->element;
4✔
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

© 2025 Coveralls, Inc