Rev 1130 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
228 | daniel-mar | 1 | <?php |
2 | |||
3 | /* |
||
4 | * OIDplus 2.0 |
||
1086 | daniel-mar | 5 | * Copyright 2019 - 2023 Daniel Marschall, ViaThinkSoft |
228 | daniel-mar | 6 | * |
7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
||
8 | * you may not use this file except in compliance with the License. |
||
9 | * You may obtain a copy of the License at |
||
10 | * |
||
11 | * http://www.apache.org/licenses/LICENSE-2.0 |
||
12 | * |
||
13 | * Unless required by applicable law or agreed to in writing, software |
||
14 | * distributed under the License is distributed on an "AS IS" BASIS, |
||
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||
16 | * See the License for the specific language governing permissions and |
||
17 | * limitations under the License. |
||
18 | */ |
||
19 | |||
1050 | daniel-mar | 20 | namespace ViaThinkSoft\OIDplus; |
511 | daniel-mar | 21 | |
1086 | daniel-mar | 22 | // phpcs:disable PSR1.Files.SideEffects |
23 | \defined('INSIDE_OIDPLUS') or die; |
||
24 | // phpcs:enable PSR1.Files.SideEffects |
||
25 | |||
730 | daniel-mar | 26 | class OIDplusAltId extends OIDplusBaseClass { |
228 | daniel-mar | 27 | |
1130 | daniel-mar | 28 | /** |
29 | * @var string |
||
30 | */ |
||
228 | daniel-mar | 31 | private $ns; |
1130 | daniel-mar | 32 | /** |
33 | * @var string |
||
34 | */ |
||
228 | daniel-mar | 35 | private $id; |
1130 | daniel-mar | 36 | /** |
37 | * @var string |
||
38 | */ |
||
228 | daniel-mar | 39 | private $desc; |
1130 | daniel-mar | 40 | /** |
41 | * @var string |
||
42 | */ |
||
945 | daniel-mar | 43 | private $suffix; |
730 | daniel-mar | 44 | |
1116 | daniel-mar | 45 | /** |
1329 | daniel-mar | 46 | * @var string |
47 | */ |
||
48 | private $moreInfoUrl; |
||
49 | |||
50 | /** |
||
1116 | daniel-mar | 51 | * @param string $ns |
52 | * @param string $id |
||
53 | * @param string $desc |
||
54 | * @param string $suffix |
||
55 | */ |
||
1329 | daniel-mar | 56 | function __construct(string $ns, string $id, string $desc, string $suffix='', string $moreInfoUrl='') { |
228 | daniel-mar | 57 | $this->ns = $ns; |
58 | $this->id = $id; |
||
59 | $this->desc = $desc; |
||
945 | daniel-mar | 60 | $this->suffix = $suffix; |
1329 | daniel-mar | 61 | $this->moreInfoUrl = $moreInfoUrl; |
228 | daniel-mar | 62 | } |
730 | daniel-mar | 63 | |
1116 | daniel-mar | 64 | /** |
65 | * @return string |
||
66 | */ |
||
67 | function getNamespace(): string { |
||
228 | daniel-mar | 68 | return $this->ns; |
69 | } |
||
70 | |||
1116 | daniel-mar | 71 | /** |
72 | * @return string |
||
73 | */ |
||
74 | function getId(): string { |
||
228 | daniel-mar | 75 | return $this->id; |
76 | } |
||
77 | |||
1116 | daniel-mar | 78 | /** |
79 | * @return string |
||
80 | */ |
||
81 | function getDescription(): string { |
||
228 | daniel-mar | 82 | return $this->desc; |
83 | } |
||
84 | |||
1116 | daniel-mar | 85 | /** |
86 | * @return string |
||
87 | */ |
||
88 | function getSuffix(): string { |
||
945 | daniel-mar | 89 | return $this->suffix; |
90 | } |
||
91 | |||
1329 | daniel-mar | 92 | /** |
93 | * @return string |
||
94 | */ |
||
95 | function getMoreInfoUrl(): string { |
||
96 | return $this->moreInfoUrl; |
||
97 | } |
||
98 | |||
228 | daniel-mar | 99 | } |