Passed
Push — main ( cd254c...1dff49 )
by Alex
01:07
created

Cryption::encryption()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 13
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 13
rs 9.9332
cc 3
nc 4
nop 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A Cryption::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
}