Completed
Push — develop ( b9b8dc...f49312 )
by Baptiste
02:08
created

Argument   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 7
dl 0
loc 39
c 0
b 0
f 0
ccs 16
cts 16
cp 1
rs 10
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\Compose\Definition\Service;
5
6
use Innmind\Compose\Definitions;
7
use Innmind\Immutable\StreamInterface;
8
9
interface Argument
10
{
11
    /**
12
     * @param mixed $value
13
     *
14
     * @throws ValueNotSupported
15
     */
16
    public static function fromValue($value): self;
17
18
    /**
19
     * @param StreamInterface<mixed> $built
20
     *
21
     * @return StreamInterface<mixed>
22
     */
23
    public function resolve(
24
        StreamInterface $built,
25
        Definitions $definitions
26
    ): StreamInterface;
27
}
28