src/LightSaml/Model/Metadata/EntityDescriptor.php 1 location
|
@@ 121-129 (lines=9) @@
|
118 |
|
* |
119 |
|
* @return EntityDescriptor |
120 |
|
*/ |
121 |
|
public function addOrganization(Organization $organization) |
122 |
|
{ |
123 |
|
if (false == is_array($this->organizations)) { |
124 |
|
$this->organizations = array(); |
125 |
|
} |
126 |
|
$this->organizations[] = $organization; |
127 |
|
|
128 |
|
return $this; |
129 |
|
} |
130 |
|
|
131 |
|
/** |
132 |
|
* @return Organization[]|null |
src/LightSaml/Model/Metadata/RoleDescriptor.php 1 location
|
@@ 200-208 (lines=9) @@
|
197 |
|
* |
198 |
|
* @return RoleDescriptor |
199 |
|
*/ |
200 |
|
public function addOrganization(Organization $organization) |
201 |
|
{ |
202 |
|
if (false == is_array($this->organizations)) { |
203 |
|
$this->organizations = array(); |
204 |
|
} |
205 |
|
$this->organizations[] = $organization; |
206 |
|
|
207 |
|
return $this; |
208 |
|
} |
209 |
|
|
210 |
|
/** |
211 |
|
* @return Organization[]|null |