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

ICanBoogie / ICanBoogie / 11626221351

01 Nov 2024 07:54AM UTC coverage: 41.117%. Remained the same
11626221351

push

github

olvlvl
Rename PingController as PingResponder

81 of 197 relevant lines covered (41.12%)

0.92 hits per line

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

0.0
/lib/AppConfigBuilder.php
1
<?php
2

3
namespace ICanBoogie;
4

5
use ICanBoogie\Config\Builder;
6

7
/**
8
 * @implements Builder<AppConfig>
9
 */
10
final class AppConfigBuilder implements Builder
11
{
12
    public static function get_fragment_filename(): string
13
    {
14
        return 'app';
×
15
    }
16

17
    private bool $cache_catalogs = false;
18

19
    public function enable_catalog_caching(): self
20
    {
21
        $this->cache_catalogs = true;
×
22

23
        return $this;
×
24
    }
25

26
    public function disable_catalog_caching(): self
27
    {
28
        $this->cache_catalogs = false;
×
29

30
        return $this;
×
31
    }
32

33
    private bool $cache_configs = false;
34

35
    public function enable_config_caching(): self
36
    {
37
        $this->cache_configs = true;
×
38

39
        return $this;
×
40
    }
41

42
    public function disable_config_caching(): self
43
    {
44
        $this->cache_configs = false;
×
45

46
        return $this;
×
47
    }
48

49
    /**
50
     * @var callable|null
51
     */
52
    private mixed $storage_for_config = null;
53

54
    public function set_storage_for_config(callable $value): self
55
    {
56
        $this->storage_for_config = $value;
×
57

58
        return $this;
×
59
    }
60

61
    /**
62
     * @var callable|null
63
     */
64
    private mixed $storage_for_vars = null;
65

66
    public function set_storage_for_vars(callable $value): self
67
    {
68
        $this->storage_for_vars = $value;
×
69

70
        return $this;
×
71
    }
72

73
    /**
74
     * @var callable|null
75
     */
76
    private mixed $error_handler = null;
77

78
    public function set_error_handler(callable $value): self
79
    {
80
        $this->error_handler = $value;
×
81

82
        return $this;
×
83
    }
84

85
    /**
86
     * @var callable|null
87
     */
88
    private mixed $exception_handler = null;
89

90
    public function set_exception_handler(callable $value): self
91
    {
92
        $this->exception_handler = $value;
×
93

94
        return $this;
×
95
    }
96

97
    /**
98
     * @var non-empty-string|null
99
     */
100
    private ?string $var = null;
101

102
    /**
103
     * @param non-empty-string $value
104
     *
105
     * @return $this
106
     */
107
    public function set_var(string $value): self
108
    {
109
        $this->var = $value;
×
110

111
        return $this;
×
112
    }
113

114
    /**
115
     * @var non-empty-string|null
116
     */
117
    private ?string $var_cache = null;
118

119
    /**
120
     * @param non-empty-string $value
121
     *
122
     * @return $this
123
     */
124
    public function set_var_cache(string $value): self
125
    {
126
        $this->var_cache = $value;
×
127

128
        return $this;
×
129
    }
130

131
    /**
132
     * @var non-empty-string|null
133
     */
134
    private ?string $var_cache_configs = null;
135

136
    /**
137
     * @param non-empty-string $value
138
     *
139
     * @return $this
140
     */
141
    public function set_var_cache_configs(string $value): self
142
    {
143
        $this->var_cache_configs = $value;
×
144

145
        return $this;
×
146
    }
147

148
    /**
149
     * @var non-empty-string|null
150
     */
151
    private ?string $var_files = null;
152

153
    /**
154
     * @param non-empty-string $value
155
     *
156
     * @return $this
157
     */
158
    public function set_var_files(string $value): self
159
    {
160
        $this->var_files = $value;
×
161

162
        return $this;
×
163
    }
164

165
    /**
166
     * @var non-empty-string|null
167
     */
168
    private ?string $var_tmp = null;
169

170
    /**
171
     * @param non-empty-string $value
172
     *
173
     * @return $this
174
     */
175
    public function set_var_tmp(string $value): self
176
    {
177
        $this->var_tmp = $value;
×
178

179
        return $this;
×
180
    }
181

182
    /**
183
     * @var non-empty-string|null
184
     */
185
    private ?string $var_lib = null;
186

187
    /**
188
     * @param non-empty-string $value
189
     *
190
     * @return $this
191
     */
192
    public function set_var_lib(string $value): self
193
    {
194
        $this->var_lib = $value;
×
195

196
        return $this;
×
197
    }
198

199
    /**
200
     * @phpstan-var array<SessionOptions::OPTION_*, mixed>
201
     */
202
    private array $session = [];
203

204
    /**
205
     * @phpstan-param array<SessionOptions::OPTION_*, mixed> $value
206
     *
207
     * @return $this
208
     */
209
    public function set_session(array $value): self
210
    {
211
        $this->session = $value;
×
212

213
        return $this;
×
214
    }
215

216
    public function build(): AppConfig
217
    {
218
        return new AppConfig(
×
219
            cache_catalogs: $this->cache_catalogs,
×
220
            cache_configs: $this->cache_configs,
×
221
            storage_for_config: $this->storage_for_config,
×
222
            storage_for_vars: $this->storage_for_vars,
×
223
            error_handler: $this->error_handler,
×
224
            exception_handler: $this->exception_handler,
×
225
            var: $this->var,
×
226
            var_cache: $this->var_cache,
×
227
            var_cache_configs: $this->var_cache_configs,
×
228
            var_files: $this->var_files,
×
229
            var_lib: $this->var_lib,
×
230
            var_tmp: $this->var_tmp,
×
231
            session: $this->session,
×
232
        );
×
233
    }
234
}
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