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

contributte / datagrid / 8230157862

11 Mar 2024 09:02AM UTC coverage: 34.102%. First build
8230157862

Pull #1060

github

radimvaculik
Fix failing tests
Pull Request #1060: [7.x] Next

117 of 435 new or added lines in 54 files covered. (26.9%)

1124 of 3296 relevant lines covered (34.1%)

0.34 hits per line

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

0.0
/src/GroupAction/GroupAction.php
1
<?php declare(strict_types = 1);
2

3
namespace Contributte\Datagrid\GroupAction;
4

5
use Nette\SmartObject;
6

7
/**
8
 * @method void onSelect(array $ids, string $value)
9
 */
10
abstract class GroupAction
11
{
12

13
        use SmartObject;
14

15
        /** @var array|callable[] */
16
        public array $onSelect = [];
17

18
        protected string $class = 'form-control input-sm form-control-sm';
19

20
        protected array $attributes = [];
21

NEW
22
        public function __construct(protected string $title)
×
23
        {
24
        }
25

26
        public function getTitle(): string
27
        {
28
                return $this->title;
×
29
        }
30

31
        /**
32
         * @return static
33
         */
34
        public function setClass(string $class): self
35
        {
36
                $this->class = $class;
×
37

38
                return $this;
×
39
        }
40

41
        public function getClass(): string
42
        {
43
                return $this->class;
×
44
        }
45

46
        /**
47
         * @return static
48
         */
49
        public function setAttribute(string $key, mixed $value): self
50
        {
51
                $this->attributes[$key] = $value;
×
52

53
                return $this;
×
54
        }
55

56
        public function getAttributes(): array
57
        {
58
                return $this->attributes;
×
59
        }
60

61
}
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