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

heimrichhannot / contao-utils-bundle / 8099821218

29 Feb 2024 05:05PM UTC coverage: 22.978% (+0.3%) from 22.703%
8099821218

Pull #74

github

koertho
fixed tests
Pull Request #74: Add date added field

29 of 41 new or added lines in 5 files covered. (70.73%)

8 existing lines in 1 file now uncovered.

1281 of 5575 relevant lines covered (22.98%)

1.54 hits per line

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

44.44
/src/Dca/AuthorFieldOptions.php
1
<?php
2

3
namespace HeimrichHannot\UtilsBundle\Dca;
4

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

20
    public function setType(string $type): AuthorFieldOptions
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): AuthorFieldOptions
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): AuthorFieldOptions
48
    {
UNCOV
49
        $this->useDefaultLabel = $useDefaultLabel;
×
UNCOV
50
        return $this;
×
51
    }
52

53
    public function isExclude(): bool
54
    {
55
        return $this->exclude;
1✔
56
    }
57

58
    public function setExclude(bool $exclude): AuthorFieldOptions
59
    {
UNCOV
60
        $this->exclude = $exclude;
×
UNCOV
61
        return $this;
×
62
    }
63

64
    public function isSearch(): bool
65
    {
66
        return $this->search;
1✔
67
    }
68

69
    public function setSearch(bool $search): AuthorFieldOptions
70
    {
71
        $this->search = $search;
×
UNCOV
72
        return $this;
×
73
    }
74

75
    public function isFilter(): bool
76
    {
77
        return $this->filter;
1✔
78
    }
79

80
    public function setFilter(bool $filter): AuthorFieldOptions
81
    {
82
        $this->filter = $filter;
×
UNCOV
83
        return $this;
×
84
    }
85
}
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