Completed
Push — master ( aa9feb...52b2fb )
by Arne
02:41
created

PanickingConflictHandler::handleConflict()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
1
<?php
2
3
namespace Archivr\ConflictHandler;
4
5
use Archivr\Exception\ConflictException;
6
use Archivr\IndexObject;
7
8
class PanickingConflictHandler implements ConflictHandlerInterface
9
{
10
    public function handleConflict(IndexObject $remoteObject, IndexObject $localObject, IndexObject $lastLocalObject = null): int
11
    {
12
        throw new ConflictException("Occurred conflict on {$remoteObject->getRelativePath()}");
13
    }
14
}
15