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

ICanBoogie / bind-prototype / 4098592051

pending completion
4098592051

push

github

Olivier Laviale
Test against PHP 8.2

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

0 of 5 relevant lines covered (0.0%)

0.0 hits per line

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

0.0
/lib/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\Binding\Prototype;
13

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

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

27
    private \ICanBoogie\Prototype\ConfigBuilder $inner_builder;
28

29
    public function __construct()
30
    {
31
        $this->inner_builder = new \ICanBoogie\Prototype\ConfigBuilder();
×
32
    }
33

34
    public function build(): Config
35
    {
36
        return $this->inner_builder->build();
×
37
    }
38

39
    /**
40
     * @param class-string $target_class The class that will receive the method extension.
41
     * @param string $method The name of the method to add to the class.
42
     * @param callable $callable The handler for the method.
43
     *
44
     * @return $this
45
     */
46
    public function bind(string $target_class, string $method, callable $callable): self
47
    {
48
        $this->inner_builder->bind($target_class, $method, $callable);
×
49

50
        return $this;
×
51
    }
52
}
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