• 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

60.0
/src/Dca/AuthorFieldConfiguration.php
1
<?php
2

3
namespace HeimrichHannot\UtilsBundle\Dca;
4

5
class AuthorFieldConfiguration extends DcaFieldConfiguration
6
{
7
    /** @var string  */
8
    protected string $type = AuthorField::TYPE_USER;
9
    /** @var string  */
10
    protected string $fieldNamePrefix = '';
11
    /** @var bool  */
12
    protected bool $useDefaultLabel = true;
13
    /** @var bool  */
14
    protected bool $exclude = true;
15
    /** @var bool  */
16
    protected bool $search = true;
17
    /** @var bool  */
18
    protected bool $filter = true;
19

20
    public function setType(string $type): AuthorFieldConfiguration
21
    {
UNCOV
22
        $this->type = $type;
×
UNCOV
23
        return $this;
×
24
    }
25

26
    public function hasFieldNamePrefix(): bool
27
    {
28
        return !empty($this->fieldNamePrefix);
2✔
29
    }
30

31
    public function getFieldNamePrefix(): string
32
    {
33
        return $this->fieldNamePrefix;
1✔
34
    }
35

36
    public function setFieldNamePrefix(string $fieldNamePrefix): AuthorFieldConfiguration
37
    {
38
        $this->fieldNamePrefix = $fieldNamePrefix;
1✔
39
        return $this;
1✔
40
    }
41

42
    public function isUseDefaultLabel(): bool
43
    {
44
        return $this->useDefaultLabel;
1✔
45
    }
46

47
    public function setUseDefaultLabel(bool $useDefaultLabel): AuthorFieldConfiguration
48
    {
UNCOV
49
        $this->useDefaultLabel = $useDefaultLabel;
×
UNCOV
50
        return $this;
×
51
    }
52

53
    public function getType(): string
54
    {
55
        return $this->type;
2✔
56
    }
57
}
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