Cryption   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A encrypt() 0 3 1
A decrypt() 0 3 1
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
}