Completed
Pull Request — master (#4)
by
unknown
09:38 queued 20s
created

PhiberCrypt   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 26
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A encrypt() 0 4 1
A decrypt() 0 4 1
1
<?php
2
3
/**
4
 * Copyright (c) 2017. Este código foi feito por @marciioluucas, sob licença MIT
5
 */
6
namespace Phiber\ORM;
7
8
use Phiber\ORM\Exceptions\NotImplementedException;
9
use Phiber\ORM\Interfaces\ICrypt;
10
11
/**
12
 * Classe responsável por administrar a encriptação/decriptação de dados.
13
 * @package bin
14
 */
15
class PhiberCrypt implements ICrypt
16
{
17
    /**
18
     * Encripta a informação passada no parâmetro
19
     * 
20
     * @todo Implement encrypt() method.
21
     * @param $information
22
     * @return mixed|void
23
     */
24
    static function encrypt($information)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
25
    {
26
        throw new NotImplementedException();
27
    }
28
29
    /**
30
     * Decripta a informação passada no parâmetro
31
     * 
32
     * @todo Implement decrypt() method.
33
     * @param $information
34
     * @return mixed|void
35
     */
36
    static function decrypt($information)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
37
    {
38
        throw new NotImplementedException();
39
    }
40
}
41