| @@ 105-118 (lines=14) @@ | ||
| 102 | * |
|
| 103 | * @return bool |
|
| 104 | */ |
|
| 105 | public function hasSessionIndex($sessionIndex) |
|
| 106 | { |
|
| 107 | if (null == $this->getAllAuthnStatements()) { |
|
| 108 | return false; |
|
| 109 | } |
|
| 110 | ||
| 111 | foreach ($this->getAllAuthnStatements() as $authnStatement) { |
|
| 112 | if ($authnStatement->getSessionIndex() == $sessionIndex) { |
|
| 113 | return true; |
|
| 114 | } |
|
| 115 | } |
|
| 116 | ||
| 117 | return false; |
|
| 118 | } |
|
| 119 | ||
| 120 | public function hasAnySessionIndex() |
|
| 121 | { |
|
| @@ 120-133 (lines=14) @@ | ||
| 117 | return false; |
|
| 118 | } |
|
| 119 | ||
| 120 | public function hasAnySessionIndex() |
|
| 121 | { |
|
| 122 | if (false == $this->getAllAuthnStatements()) { |
|
| 123 | return false; |
|
| 124 | } |
|
| 125 | ||
| 126 | foreach ($this->getAllAuthnStatements() as $authnStatement) { |
|
| 127 | if ($authnStatement->getSessionIndex()) { |
|
| 128 | return true; |
|
| 129 | } |
|
| 130 | } |
|
| 131 | ||
| 132 | return false; |
|
| 133 | } |
|
| 134 | ||
| 135 | //region Getters & Setters |
|
| 136 | ||