| @@ 41-49 (lines=9) @@ | ||
| 38 | /** |
|
| 39 | * @return SimpleXMLElement |
|
| 40 | */ |
|
| 41 | public function getProxyNode() |
|
| 42 | { |
|
| 43 | $authNodes = $this->node->xpath('cas:proxySuccess'); |
|
| 44 | if (count($authNodes) < 1) { |
|
| 45 | return $this->node->addChild('cas:proxySuccess'); |
|
| 46 | } |
|
| 47 | ||
| 48 | return $authNodes[0]; |
|
| 49 | } |
|
| 50 | } |
|
| 51 | ||
| @@ 76-84 (lines=9) @@ | ||
| 73 | /** |
|
| 74 | * @return SimpleXMLElement |
|
| 75 | */ |
|
| 76 | protected function getAuthNode() |
|
| 77 | { |
|
| 78 | $authNodes = $this->node->xpath('cas:authenticationSuccess'); |
|
| 79 | if (count($authNodes) < 1) { |
|
| 80 | return $this->node->addChild('cas:authenticationSuccess'); |
|
| 81 | } |
|
| 82 | ||
| 83 | return $authNodes[0]; |
|
| 84 | } |
|
| 85 | } |
|
| 86 | ||