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

LiterallyCallback::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
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