1 | <?php |
||
9 | class ClaimManager implements Contract\ClaimManager |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $tableName; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $foreignKey; |
||
21 | |||
22 | /** |
||
23 | * TokenManager constructor |
||
24 | */ |
||
25 | public function __construct() |
||
29 | |||
30 | /** |
||
31 | * add claim to the white list |
||
32 | * |
||
33 | * @param Claim $claim |
||
34 | * @return bool |
||
35 | */ |
||
36 | public function add(Claim $claim) |
||
50 | |||
51 | /** |
||
52 | * check that claim is in the white list |
||
53 | * |
||
54 | * @param Claim $claim |
||
55 | * @return bool |
||
56 | */ |
||
57 | public function check(Claim $claim) |
||
66 | |||
67 | /** |
||
68 | * remove claim from the white list |
||
69 | * |
||
70 | * @param Claim $claim |
||
71 | * @return bool |
||
72 | */ |
||
73 | public function remove(Claim $claim) |
||
86 | |||
87 | /** |
||
88 | * remove all claims associate to the subject from the white list |
||
89 | * |
||
90 | * @param Claim $claim |
||
91 | * @return int |
||
92 | */ |
||
93 | public function removeAll(Claim $claim) |
||
100 | |||
101 | } |