We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24968cb commit f01c44dCopy full SHA for f01c44d
src/Model/CentralizedPermissions/UserProjectAccess.php
@@ -3,6 +3,7 @@
3
namespace Platformsh\Client\Model\CentralizedPermissions;
4
5
use GuzzleHttp\ClientInterface;
6
+use Platformsh\Client\Model\Ref\OrganizationRef;
7
use Platformsh\Client\Model\Ref\ProjectRef;
8
use Platformsh\Client\Model\ResourceWithReferences;
9
@@ -38,4 +39,13 @@ public function getProjectInfo()
38
39
}
40
return null;
41
42
+
43
+ /** @return OrganizationRef|null */
44
+ public function getOrganizationInfo()
45
+ {
46
+ if (isset($this->data['ref:organizations'][$this->data['organization_id']])) {
47
+ return $this->data['ref:organizations'][$this->data['organization_id']];
48
+ }
49
+ return null;
50
51
0 commit comments