Skip to content
Snippets Groups Projects
Commit 5cf5c2ac authored by Are Johannessen's avatar Are Johannessen
Browse files

Merge branch '1377-wp143-clean-up-scimrecord' into 'main'

WP142 #1377 Refactor ScimRecord methods and adjust position title logic.

See merge request !4
parents c85bbda3 5b3fa2d0
No related branches found
No related tags found
1 merge request!4WP142 #1377 Refactor ScimRecord methods and adjust position title logic.
......@@ -358,15 +358,6 @@ class ScimRecord {
return $this->orgUnitSymbol;
}
/**
* Sets organizational unit symbol.
*/
private function setOrgUnitSymbol(): void {
if (isset($this->data['no:edu:scim:user']['primaryOrgUnit']['symbol'])) {
$this->orgUnitSymbol = $this->data['no:edu:scim:user']['primaryOrgUnit']['symbol'];
}
}
/**
* Returns title.
*
......@@ -408,10 +399,10 @@ class ScimRecord {
}
/**
* Returns roles.
* Returns schemas.
*
* @return array
* Roles.
* Schemas.
*/
public function getSchemas(): array {
return $this->schemas;
......@@ -512,6 +503,15 @@ class ScimRecord {
}
}
/**
* Sets organizational unit symbol.
*/
private function setOrgUnitSymbol(): void {
if (isset($this->data['no:edu:scim:user']['primaryOrgUnit']['symbol'])) {
$this->orgUnitSymbol = $this->data['no:edu:scim:user']['primaryOrgUnit']['symbol'];
}
}
/**
* Sets username.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment