1 | <?php |
||
15 | class Generator |
||
16 | extends HelperBase |
||
17 | implements GeneratorContract |
||
18 | { |
||
19 | /** |
||
20 | * Generates the token |
||
21 | * @param array $claims |
||
22 | * @return Token |
||
23 | */ |
||
24 | 11 | final public function __invoke(array $claims) |
|
42 | |||
43 | /** |
||
44 | * Default claims (can be overriden) |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | 11 | protected function getDefaultClaims() |
|
59 | |||
60 | /** |
||
61 | * Forced claims |
||
62 | * |
||
63 | * @return array |
||
64 | */ |
||
65 | 11 | private function getForcedClaims() |
|
73 | |||
74 | /** |
||
75 | * Checks if claim is bad |
||
76 | * |
||
77 | * @param string $claim |
||
78 | * @return boolean |
||
79 | */ |
||
80 | 10 | private function isBadClaim($claim) |
|
84 | } |
||
85 |