Completed
Push — master ( 0fcf39...66a180 )
by Joao
02:00
created

MyWrapper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getWrapper() 0 9 1
1
<?php
2
3
class MyWrapper
4
{
5
    /**
6
     * Note --> Secret key must be stored at server side. Never Share this to the client HTML
7
     *
8
     * @return \ByJG\Util\JwtWrapper
9
     * @throws \ByJG\Util\JwtWrapperException
10
     */
11
    public static function getWrapper()
12
    {
13
        $server = "example.com";
14
        $secret = new \ByJG\Util\JwtKeySecret(base64_encode("secrect_key_for_test"));
15
16
        $jwtWrapper = new \ByJG\Util\JwtWrapper($server, $secret);
17
18
        return $jwtWrapper;
19
    }
20
21
}
22
23