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

DummyConnectionAdapter::getReadStream()   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 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