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

Collection::first()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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