Cryption::decrypt()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Erykai\Cryption;
4
5
use Exception;
6
7
class Cryption extends Resource
8
{
9
    /**
10
     * @throws Exception
11
     */
12
    public function encrypt(string $string): string
13
    {
14
        return $this->encryption($string);
15
    }
16
17
    public function decrypt(string $encrypted): ?string
18
    {
19
        return $this->decryption($encrypted);
20
    }
21
}