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

Argument::unwind()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 1
crap 1
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