Passed
Pull Request — master (#1)
by
unknown
02:18
created

BinaryOpFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 19
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Smoren\FormulaTools\V2\Helpers;
6
7
use Smoren\FormulaTools\V2\Interfaces\IBinaryOpFactory;
8
9
/**
10
 * @template T
11
 * @template C of T
12
 * @implements IBinaryOpFactory<T>
13
 */
14
class BinaryOpFactory implements IBinaryOpFactory
15
{
16
    use OpDefinitionTrait {
17
        OpDefinitionTrait::__construct as private construct0;
18
    }
19
    /** @use BinaryOpFactoryTrait<T, C> */
20
    use BinaryOpFactoryTrait {
21
        BinaryOpFactoryTrait::__construct as private construct1;
22
    }
23
24
    /**
25
     * @param int $leftPrecedence
26
     * @param int $rightPrecedence
27
     * @param class-string<C> $class
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string<C> at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string<C>.
Loading history...
28
     */
29
    public function __construct(int $leftPrecedence, int $rightPrecedence, string $class)
30
    {
31
        $this->construct0($leftPrecedence, $rightPrecedence);
32
        $this->construct1($class);
33
    }
34
}
35