Completed
Push — master ( 18f9b1...e2cca3 )
by Dawid
07:34
created

Collection::previous()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
cc 2
nc 2
nop 0
crap 6
1
<?php declare(strict_types=1);
2
3
namespace Igni\Storage\Mapping;
4
5
use Countable;
6
use Iterator;
7
8
interface Collection extends Iterator, Countable
9
{
10
    public function contains($item): bool;
11
    public function first();
12
    public function last();
13
    public function at(int $index);
14
    public function toArray(): array;
15
}
16