AModifier
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 17
ccs 0
cts 6
cp 0
wmc 0
1
<?php
2
3
namespace kalanis\UploadPerPartes\Target\Local\DrivingFile\DataModifiers;
4
5
6
use kalanis\UploadPerPartes\Traits\TLangInit;
7
use kalanis\UploadPerPartes\UploadException;
8
9
10
/**
11
 * Class AModifier
12
 * @package kalanis\UploadPerPartes\Target\Local\DrivingFile\DataModifiers
13
 * Storing driving file data with at least some encoding of data strings - might not be read as raw data
14
 * By extending this class and make it use regular cryptography you can practically disable ability to read your
15
 * datafile by anyone with access to datafile storage.
16
 */
17
abstract class AModifier
18
{
19
    use TLangInit;
20
21
    /**
22
     * @param string $data
23
     * @throws UploadException
24
     * @return string
25
     */
26
    abstract public function pack(string $data): string;
27
28
    /**
29
     * @param string $data
30
     * @throws UploadException
31
     * @return string
32
     */
33
    abstract public function unpack(string $data): string;
34
}
35