Completed
Push — develop ( 523088...d9cee5 )
by Baptiste
01:42
created

Sequence   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 8
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A accepts() 0 3 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\Compose\Definition\Argument\Type;
5
6
use Innmind\Compose\Definition\Argument\Type;
7
use Innmind\Immutable\SequenceInterface;
8
9
final class Sequence implements Type
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14 1
    public function accepts($value): bool
15
    {
16 1
        return $value instanceof SequenceInterface;
17
    }
18
}
19