Blackbird   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
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