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

heimrichhannot / contao-utils-bundle / 8111841604

01 Mar 2024 01:05PM UTC coverage: 72.668% (+0.09%) from 72.575%
8111841604

push

github

koertho
fix test

779 of 1072 relevant lines covered (72.67%)

3.5 hits per line

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

0.0
/src/Event/ExtendEntityFinderEvent.php
1
<?php
2

3
/*
4
 * Copyright (c) 2022 Heimrich & Hannot GmbH
5
 *
6
 * @license LGPL-3.0-or-later
7
 */
8

9
namespace HeimrichHannot\UtilsBundle\Event;
10

11
use HeimrichHannot\UtilsBundle\EntityFinder\EntityFinderHelper;
12
use Symfony\Contracts\EventDispatcher\Event;
13

14
class ExtendEntityFinderEvent extends Event
15
{
16
    private ?string $output = null;
17

18
    public function __construct(
19
        private string $table,
20
        private int|string $id,
21
        private array $parents,
22
        private array $inserttags,
23
        private EntityFinderHelper $entityFinderHelper,
24
        private bool $onlyText = false
25
    )
26
    {
27
    }
×
28

29
    public function getTable(): string
30
    {
31
        return $this->table;
×
32
    }
33

34
    /**
35
     * @return int|string
36
     */
37
    public function getId()
38
    {
39
        return $this->id;
×
40
    }
41

42
    public function addParent(string $table, $id): void
43
    {
44
        $this->parents[] = ['table' => $table, 'id' => $id];
×
45
    }
46

47
    public function getParents(): array
48
    {
49
        return $this->parents;
×
50
    }
51

52
    public function setParents(array $parents): void
53
    {
54
        $this->parents = $parents;
×
55
    }
56

57
    public function getOutput(): ?string
58
    {
59
        return $this->output;
×
60
    }
61

62
    public function setOutput(?string $output): void
63
    {
64
        $this->output = $output;
×
65
    }
66

67
    public function isOnlyText(): bool
68
    {
69
        return $this->onlyText;
×
70
    }
71

72
    public function addInserttag(string $inserttag): void
73
    {
74
        $this->inserttags[] = $inserttag;
×
75
    }
76

77
    public function getInserttags(): array
78
    {
79
        return $this->inserttags;
×
80
    }
81

82
    public function setInserttags(array $inserttags): void
83
    {
84
        $this->inserttags = $inserttags;
×
85
    }
86

87
    public function getEntityFinderHelper(): EntityFinderHelper
88
    {
89
        return $this->entityFinderHelper;
×
90
    }
91
}
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