Signer
last analyzed

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 19

3 Methods

Rating   Name   Duplication   Size   Complexity  
verify() 0 1 ?
sign() 0 1 ?
signer() 0 1 ?
1
<?php
2
3
namespace Framgia\Jwt\Contracts;
4
5
use Lcobucci\JWT\Builder;
6
use Lcobucci\JWT\Token;
7
8
interface Signer
9
{
10
    /**
11
     * @param  \Lcobucci\JWT\Token  $token
12
     * @return bool
13
     */
14
    public function verify(Token $token);
15
16
    /**
17
     * @param  \Lcobucci\JWT\Builder  $builder
18
     * @return \Lcobucci\JWT\Builder
19
     */
20
    public function sign(Builder $builder);
21
22
    /**
23
     * @return \Lcobucci\JWT\Signer
24
     */
25
    public function signer();
0 ignored issues
show
Coding Style Best Practice introduced by
Please use __construct() instead of a PHP4-style constructor that is named after the class.
Loading history...
26
}
27