Completed
Push — master ( 749211...788a53 )
by Dominique
03:23
created

Period::intersects()   B

Complexity

Conditions 7
Paths 4

Size

Total Lines 21
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 11
CRAP Score 7

Importance

Changes 0
Metric Value
cc 7
eloc 10
nc 4
nop 1
dl 0
loc 21
ccs 11
cts 11
cp 1
crap 7
rs 8.8333
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
namespace Kreemers\Period;
4
5
use DateTime;
6
7
interface Period
8
{
9
    public function getStart(): DateTime;
10
11
    public function getEnd(): DateTime;
12
13
    public function equals(GenericPeriod $period): bool;
14
15
    public function in(GenericPeriod $period): bool;
16
17
    public function encloses(GenericPeriod $period): bool;
18
19
    public function intersects(GenericPeriod $period): bool;
20
}