Conditions | 6 |
Paths | 32 |
Total Lines | 26 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
54 | public function toArray() |
||
55 | { |
||
56 | $data = []; |
||
57 | |||
58 | if (!empty($this->sub)) { |
||
59 | $data['sub'] = $this->sub; |
||
60 | } |
||
61 | |||
62 | if (!empty($this->iss)) { |
||
63 | $data['iss'] = $this->iss; |
||
64 | } |
||
65 | |||
66 | if (!empty($this->iat)) { |
||
67 | $data['iat'] = $this->iat; |
||
68 | } |
||
69 | |||
70 | if (!empty($this->exp)) { |
||
71 | $data['exp'] = $this->exp; |
||
72 | } |
||
73 | |||
74 | if (!empty($this->jti)) { |
||
75 | $data['jti'] = $this->jti; |
||
76 | } |
||
77 | |||
78 | return $data; |
||
79 | } |
||
80 | |||
81 | } |