Passed
Pull Request — master (#16)
by Dmitry
14:13
created

LiterallyCallback   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 18
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCallback() 0 3 1
A __construct() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Yiisoft\Composer\Config\Tests\Integration\Tests\Helper;
5
6
use Closure;
7
8
final class LiterallyCallback
9
{
10
    /**
11
     * @var Closure
12
     */
13
    private Closure $callback;
14
15
    public function __construct(Closure $callback)
16
    {
17
        $this->callback = $callback;
18
    }
19
20
    /**
21
     * @return Closure
22
     */
23
    public function getCallback(): Closure
24
    {
25
        return $this->callback;
26
    }
27
}
28