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

heimrichhannot / contao-utils-bundle / 15017483614

14 May 2025 09:41AM UTC coverage: 25.302% (-54.2%) from 79.482%
15017483614

Pull #96

github

koertho
backport anonymize utils
Pull Request #96: Backport anonymize utils

6 of 7 new or added lines in 2 files covered. (85.71%)

248 existing lines in 22 files now uncovered.

1488 of 5881 relevant lines covered (25.3%)

1.56 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

13
/**
14
 * @deprecated Use EntityFinderFindEvent instead
15
 */
16
class ExtendEntityFinderEvent extends AbstractEvent
17
{
18
    /** @var string */
19
    private $table;
20

21
    /** @var int|string */
22
    private $id;
23

24
    /** @var string|null */
25
    private $output = null;
26
    /**
27
     * @var array
28
     */
29
    private $parents;
30
    /**
31
     * @var bool
32
     */
33
    private $onlyText;
34
    /**
35
     * @var array
36
     */
37
    private $inserttags;
38
    /**
39
     * @var EntityFinderHelper
40
     */
41
    private $entityFinderHelper;
42

43
    public function __construct(string $table, $id, array $parents, array $inserttags, EntityFinderHelper $entityFinderHelper, bool $onlyText = false)
44
    {
UNCOV
45
        $this->table = $table;
×
UNCOV
46
        $this->id = $id;
×
47
        $this->parents = $parents;
×
UNCOV
48
        $this->onlyText = $onlyText;
×
UNCOV
49
        $this->inserttags = $inserttags;
×
UNCOV
50
        $this->entityFinderHelper = $entityFinderHelper;
×
51
    }
52

53
    public function getTable(): string
54
    {
UNCOV
55
        return $this->table;
×
56
    }
57

58
    /**
59
     * @return int|string
60
     */
61
    public function getId()
62
    {
UNCOV
63
        return $this->id;
×
64
    }
65

66
    public function addParent(string $table, $id): void
67
    {
UNCOV
68
        $this->parents[] = ['table' => $table, 'id' => $id];
×
69
    }
70

71
    public function getParents(): array
72
    {
UNCOV
73
        return $this->parents;
×
74
    }
75

76
    public function setParents(array $parents): void
77
    {
UNCOV
78
        $this->parents = $parents;
×
79
    }
80

81
    public function getOutput(): ?string
82
    {
UNCOV
83
        return $this->output;
×
84
    }
85

86
    public function setOutput(?string $output): void
87
    {
UNCOV
88
        $this->output = $output;
×
89
    }
90

91
    public function isOnlyText(): bool
92
    {
UNCOV
93
        return $this->onlyText;
×
94
    }
95

96
    public function addInserttag(string $inserttag): void
97
    {
UNCOV
98
        $this->inserttags[] = $inserttag;
×
99
    }
100

101
    public function getInserttags(): array
102
    {
UNCOV
103
        return $this->inserttags;
×
104
    }
105

106
    public function setInserttags(array $inserttags): void
107
    {
UNCOV
108
        $this->inserttags = $inserttags;
×
109
    }
110

111
    public function getEntityFinderHelper(): EntityFinderHelper
112
    {
UNCOV
113
        return $this->entityFinderHelper;
×
114
    }
115
}
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