IsSeekable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 12
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A toString() 0 4 1
A runMatches() 0 4 1
1
<?php
2
3
namespace Psr7Unitesting\Stream;
4
5
use Psr\Http\Message\StreamInterface;
6
7
class IsSeekable extends AbstractConstraint
8
{
9
    public function toString()
10
    {
11
        return 'is seekable';
12
    }
13
14
    protected function runMatches(StreamInterface $stream)
15
    {
16
        return $stream->isSeekable();
17
    }
18
}
19