Completed
Push — develop ( f8d1c0...c6d734 )
by Baptiste
02:31
created

Constructor::__invoke()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 11
c 0
b 0
f 0
ccs 6
cts 6
cp 1
rs 9.4285
cc 2
eloc 5
nc 2
nop 1
crap 2
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\Compose\Definition\Service;
5
6
use Innmind\Immutable\Str;
7
8
interface Constructor
9
{
10
    /**
11
     * @throws ValueNotSupported
12
     */
13
    public static function fromString(Str $value): self;
14
15
    /**
16
     * @param mixed $arguments
17
     */
18
    public function __invoke(...$arguments): object;
19
}
20