Crypt   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A asSerializer() 0 3 1
A asObject() 0 3 1
A asJson() 0 3 1
1
<?php
2
3
namespace Endeavors\Components\Encryption;
4
5
final class Crypt
6
{
7
    public static function asObject($key = "")
8
    {
9
        return new JsonObjectEncrypter(static::asJson($key));
10
    }
11
12
    public static function asJson($key = "")
13
    {
14
        return new JsonEncrypter(static::asSerializer($key));
15
    }
16
17
    public static function asSerializer($key = "")
18
    {
19
        return new SerializeEncrypter(new LaravelEncrypter($key));
20
    }
21
}