Completed
Push — master ( 83bd2d...9517e2 )
by Arne
03:10
created

DummyConnectionAdapter   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 32
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A read() 0 4 1
A write() 0 4 1
A writeStream() 0 4 1
A exists() 0 4 1
A unlink() 0 4 1
A getReadStream() 0 4 1
1
<?php
2
3
namespace Archivr\ConnectionAdapter;
4
5
class DummyConnectionAdapter implements ConnectionAdapterInterface
6
{
7
    public function read(string $relativePath): string
8
    {
9
        throw new \RuntimeException('Trying to call ' . __FUNCTION__ . '() on DummyVaultConnection.');
10
    }
11
12
    public function write(string $relativePath, string $content)
13
    {
14
        throw new \RuntimeException('Trying to call ' . __FUNCTION__ . '() on DummyVaultConnection.');
15
    }
16
17
    public function writeStream(string $relativePath, $stream)
18
    {
19
        throw new \RuntimeException('Trying to call ' . __FUNCTION__ . '() on DummyVaultConnection.');
20
    }
21
22
    public function exists(string $relativePath): bool
23
    {
24
        throw new \RuntimeException('Trying to call ' . __FUNCTION__ . '() on DummyVaultConnection.');
25
    }
26
27
    public function unlink(string $relativePath)
28
    {
29
        throw new \RuntimeException('Trying to call ' . __FUNCTION__ . '() on DummyVaultConnection.');
30
    }
31
32
    public function getReadStream(string $relativePath)
33
    {
34
        throw new \RuntimeException('Trying to call ' . __FUNCTION__ . '() on DummyVaultConnection.');
35
    }
36
}
37