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

ICanBoogie / ICanBoogie / 11429990007

20 Oct 2024 10:05PM UTC coverage: 35.686% (+0.3%) from 35.433%
11429990007

push

github

olvlvl
Improve doc blocks

1 of 1 new or added line in 1 file covered. (100.0%)

2 existing lines in 2 files now uncovered.

91 of 255 relevant lines covered (35.69%)

0.81 hits per line

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

0.0
/lib/Debug/ConfigBuilder.php
1
<?php
2

3
/*
4
 * This file is part of the ICanBoogie package.
5
 *
6
 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
namespace ICanBoogie\Debug;
13

14
use ICanBoogie\Config\Builder;
15
use ICanBoogie\Debug;
16

17
use function in_array;
18

19
/**
20
 * @implements Builder<Config>
21
 */
22
final class ConfigBuilder implements Builder
23
{
24
    public static function get_fragment_filename(): string
25
    {
26
        return 'debug';
×
27
    }
28

29
    private string $mode = Debug::MODE_DEV;
30

31
    public function set_mode(string $mode): self
32
    {
UNCOV
33
        assert(in_array($mode, [ Debug::MODE_DEV, Debug::MODE_STAGE, Debug::MODE_PRODUCTION ]));
×
34

35
        $this->mode = $mode;
×
36

37
        return $this;
×
38
    }
39

40
    public function build(): Config
41
    {
42
        return new Config(
×
43
            mode: $this->mode
×
44
        );
×
45
    }
46
}
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