Blackbird::__invoke()   A
last analyzed

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 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
/**
4
 * For the full copyright and license information, please view
5
 * the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types=1);
9
10
namespace loophp\combinator\Combinator;
11
12
use Closure;
13
use loophp\combinator\Combinator;
14
15
/**
16
 * Class Blackbird.
17
 *
18
 * @template NewAType
19
 * @template NewBType
20
 * @template NewCType
21
 * @template NewDType
22
 *
23
 * phpcs:disable Generic.Files.LineLength.TooLong
24
 */
25
final class Blackbird extends Combinator
26
{
27
    /**
28
     * @return Closure(callable(NewCType): NewDType): Closure(callable(NewAType): callable(NewBType): NewCType): Closure(NewAType): Closure(NewBType): NewCType
29
     */
30
    public function __invoke(): Closure
31
    {
32
        return B::of()(B::of())(B::of());
33
    }
34
}
35