Passed
Push — master ( b71d8d...e6115e )
by Petr
02:57
created

Translations::uppDriveDataNotSet()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace kalanis\UploadPerPartes\Uploader;
4
5
6
use kalanis\UploadPerPartes\Interfaces\IUPPTranslations;
7
8
9
/**
10
 * Class Translations
11
 * @package kalanis\UploadPerPartes
12
 * Return translated quotes from backend
13
 * - necessary due many translation systems through web
14
 * For work extends this class and pass extension into your project
15
 */
16
class Translations implements IUPPTranslations
17
{
18 2
    public function uppSentNameIsEmpty(): string
19
    {
20 2
        return 'SENT FILE NAME IS EMPTY';
21
    }
22
23 1
    public function uppUploadNameIsEmpty(): string
24
    {
25 1
        return 'UPLOAD FILE NAME IS EMPTY';
26
    }
27
28 1
    public function uppSharedKeyIsEmpty(): string
29
    {
30 1
        return 'SHARED KEY IS EMPTY';
31
    }
32
33 1
    public function uppSharedKeyIsInvalid(): string
34
    {
35 1
        return 'SHARED KEY IS INVALID';
36
    }
37
38 1
    public function uppKeyVariantNotSet(): string
39
    {
40 1
        return 'KEY VARIANT NOT SET';
41
    }
42
43 1
    public function uppKeyVariantIsWrong(string $className): string
44
    {
45 1
        return 'KEY VARIANT IS WRONG';
46
    }
47
48 1
    public function uppTargetDirIsEmpty(): string
49
    {
50 1
        return 'TARGET DIR IS NOT SET';
51
    }
52
53 3
    public function uppDriveFileAlreadyExists(string $driveFile): string
54
    {
55 3
        return 'DRIVEFILE ALREADY EXISTS';
56
    }
57
58 1
    public function uppDriveFileNotContinuous(string $driveFile): string
59
    {
60 1
        return 'DRIVEFILE IS NOT CONTINUOUS';
61
    }
62
63 5
    public function uppDriveFileCannotRemove(string $key): string
64
    {
65 5
        return 'DRIVEFILE CANNOT BE REMOVED';
66
    }
67
68 1
    public function uppDriveFileVariantNotSet(): string
69
    {
70 1
        return 'DRIVEFILE VARIANT NOT SET';
71
    }
72
73 1
    public function uppDriveDataNotSet(): string
74
    {
75 1
        return 'DRIVE DATA NOT SET';
76
    }
77
78 1
    public function uppDriveFileVariantIsWrong(string $className): string
79
    {
80 1
        return 'DRIVEFILE VARIANT IS WRONG';
81
    }
82
83 6
    public function uppDriveFileCannotRead(string $key): string
84
    {
85 6
        return 'CANNOT READ DRIVEFILE';
86
    }
87
88 5
    public function uppDriveFileCannotWrite(string $key): string
89
    {
90 5
        return 'CANNOT WRITE DRIVEFILE';
91
    }
92
93 2
    public function uppCannotRemoveData(string $location): string
94
    {
95 2
        return 'CANNOT REMOVE DATA';
96
    }
97
98 2
    public function uppReadTooEarly(string $key): string
99
    {
100 2
        return 'READ TOO EARLY';
101
    }
102
103 2
    public function uppCannotOpenFile(string $location): string
104
    {
105 2
        return 'CANNOT OPEN FILE';
106
    }
107
108
    /**
109
     * @param string $location
110
     * @return string
111
     * @codeCoverageIgnore
112
     * @see \kalanis\UploadPerPartes\DataStorage\VolumeBasic::getPart
113
     */
114 6
    public function uppCannotReadFile(string $location): string
115
    {
116 6
        return 'CANNOT READ FILE';
117
    }
118
119
    /**
120
     * @param string $location
121
     * @return string
122
     * @codeCoverageIgnore   no ideas how to fail seek
123
     * @see \kalanis\UploadPerPartes\DataStorage\VolumeBasic::addPart
124
     */
125
    public function uppCannotSeekFile(string $location): string
126
    {
127
        return 'CANNOT SEEK FILE';
128
    }
129
130
    /**
131
     * @param string $location
132
     * @return string
133
     * @codeCoverageIgnore
134
     * @see \kalanis\UploadPerPartes\DataStorage\VolumeBasic::addPart
135
     */
136
    public function uppCannotWriteFile(string $location): string
137
    {
138
        return 'CANNOT WRITE FILE';
139
    }
140
141
    /**
142
     * @param string $location
143
     * @return string
144
     * @codeCoverageIgnore
145
     * @see \kalanis\UploadPerPartes\DataStorage\VolumeBasic::truncate
146
     */
147 3
    public function uppCannotTruncateFile(string $location): string
148
    {
149 3
        return 'FILE CANNOT TRUNCATE';
150
    }
151
152 2
    public function uppSegmentOutOfBounds(int $segment): string
153
    {
154 2
        return 'SEGMENT OUT OF BOUNDS';
155
    }
156
157 3
    public function uppSegmentNotUploadedYet(int $segment): string
158
    {
159 3
        return 'SEGMENT NOT UPLOADED YET';
160
    }
161
}
162