Skip to content

Commit ec161b4

Browse files
committed
some cleanup
1 parent 4f1a05c commit ec161b4

23 files changed

Lines changed: 118 additions & 15 deletions

src/ACL/ACLAuthMethodListEntryQueryResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
class ACLAuthMethodListEntryQueryResponse extends AbstractValuedQueryResponse implements UnmarshalledResponseInterface
2727
{
28+
/** @var \DCarbone\PHPConsulAPI\ACL\ACLAuthMethodListEntry[] */
2829
public array $ACLAuthMethodListEntries = [];
2930

3031
public function getValue(): array

src/ACL/ACLBindingRulesQueryResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
class ACLBindingRulesQueryResponse extends AbstractValuedQueryResponse implements UnmarshalledResponseInterface
2727
{
28+
/** @var \DCarbone\PHPConsulAPI\ACL\ACLBindingRule[] */
2829
public array $ACLBindingRules = [];
2930

3031
public function getValue(): array

src/ACL/ACLEntriesResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
class ACLEntriesResponse extends AbstractValuedQueryResponse implements UnmarshalledResponseInterface
2727
{
28+
/** @var \DCarbone\PHPConsulAPI\ACL\ACLEntry[] */
2829
public array $ACLEntries = [];
2930

3031
public function getValue(): array

src/ACL/ACLPolicy.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class ACLPolicy extends AbstractModel
2828
public string $Name;
2929
public string $Description;
3030
public string $Rules;
31+
/** @var string[] */
3132
public array $Datacenters;
3233
public string $Hash;
3334
public int $CreateIndex;
@@ -108,6 +109,9 @@ public function setRules(string $Rules): self
108109
return $this;
109110
}
110111

112+
/**
113+
* @return string[]
114+
*/
111115
public function getDatacenters(): array
112116
{
113117
return $this->Datacenters;

src/ACL/ACLPolicyListEntryQueryResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
class ACLPolicyListEntryQueryResponse extends AbstractValuedQueryResponse implements UnmarshalledResponseInterface
2727
{
28+
/** @var \DCarbone\PHPConsulAPI\ACL\ACLPolicyListEntry[] */
2829
public array $ACLPolicyListEntries = [];
2930

3031
public function getValue(): array

src/ACL/ACLRolesQueryResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
class ACLRolesQueryResponse extends AbstractValuedQueryResponse implements UnmarshalledResponseInterface
2727
{
28+
/** @var \DCarbone\PHPConsulAPI\ACL\ACLRole[] */
2829
public array $ACLRoles = [];
2930

3031
public function getValue(): array

src/ACL/ACLServiceIdentity.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
class ACLServiceIdentity extends AbstractModel
2626
{
2727
public string $ServiceName;
28+
/** @var string[] */
2829
public array $Datacenters;
2930

3031
public function __construct(
@@ -44,6 +45,9 @@ public function getServiceName(): string
4445
return $this->ServiceName;
4546
}
4647

48+
/**
49+
* @return string[]
50+
*/
4751
public function getDatacenters(): array
4852
{
4953
return $this->Datacenters;

src/ACL/ACLTemplatedPolicy.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class ACLTemplatedPolicy extends AbstractModel
2626
{
2727
public string $TemplateName;
2828
public null|ACLTemplatedPolicyVariables $TemplateVariables;
29+
/** @var string[] */
2930
public array $Datacenters;
3031

3132
public function __construct(
@@ -60,6 +61,9 @@ public function setTemplateVariables(null|ACLTemplatedPolicyVariables $TemplateV
6061
return $this;
6162
}
6263

64+
/**
65+
* @return string[]
66+
*/
6367
public function getDatacenters(): array
6468
{
6569
return $this->Datacenters;

src/ACL/ACLTokenExpanded.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ public function __construct(
100100
}
101101
}
102102

103+
/**
104+
* @return \DCarbone\PHPConsulAPI\ACL\ACLPolicy[]
105+
*/
103106
public function getExpandedPolicies(): array
104107
{
105108
return $this->ExpandedPolicies;
@@ -111,6 +114,9 @@ public function setExpandedPolicies(ACLPolicy ...$ExpandedPolicies): self
111114
return $this;
112115
}
113116

117+
/**
118+
* @return \DCarbone\PHPConsulAPI\ACL\ACLRole[]
119+
*/
114120
public function getExpandedRoles(): array
115121
{
116122
return $this->ExpandedRoles;
@@ -122,6 +128,9 @@ public function setExpandedRoles(ACLRole ...$ExpandedRoles): self
122128
return $this;
123129
}
124130

131+
/**
132+
* @return string[]
133+
*/
125134
public function getNamespaceDefaultPolicyIDs(): array
126135
{
127136
return $this->NamespaceDefaultPolicyIDs;
@@ -133,6 +142,9 @@ public function setNamespaceDefaultPolicyIDs(string ...$NamespaceDefaultPolicyID
133142
return $this;
134143
}
135144

145+
/**
146+
* @return string[]
147+
*/
136148
public function getNamespaceDefaultRoleIDs(): array
137149
{
138150
return $this->NamespaceDefaultRoleIDs;

src/ACL/ACLTokenFields.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ public function setDescription(string $Description): self
106106
return $this;
107107
}
108108

109+
/**
110+
* @return \DCarbone\PHPConsulAPI\ACL\ACLTokenPolicyLink[]
111+
*/
109112
public function getPolicies(): array
110113
{
111114
return $this->Policies;
@@ -117,6 +120,9 @@ public function setPolicies(ACLTokenPolicyLink ...$Policies): self
117120
return $this;
118121
}
119122

123+
/**
124+
* @return \DCarbone\PHPConsulAPI\ACL\ACLTokenRoleLink[]
125+
*/
120126
public function getRoles(): array
121127
{
122128
return $this->Roles;
@@ -128,6 +134,9 @@ public function setRoles(ACLTokenRoleLink ...$Roles): self
128134
return $this;
129135
}
130136

137+
/**
138+
* @return \DCarbone\PHPConsulAPI\ACL\ACLServiceIdentity[]
139+
*/
131140
public function getServiceIdentities(): array
132141
{
133142
return $this->ServiceIdentities;
@@ -139,6 +148,9 @@ public function setServiceIdentities(ACLServiceIdentity ...$ServiceIdentities):
139148
return $this;
140149
}
141150

151+
/**
152+
* @return \DCarbone\PHPConsulAPI\ACL\ACLNodeIdentity[]
153+
*/
142154
public function getNodeIdentities(): array
143155
{
144156
return $this->NodeIdentities;
@@ -150,6 +162,9 @@ public function setNodeIdentities(ACLNodeIdentity ...$NodeIdentities): self
150162
return $this;
151163
}
152164

165+
/**
166+
* @return \DCarbone\PHPConsulAPI\ACL\ACLTemplatedPolicy[]
167+
*/
153168
public function getTemplatePolicies(): array
154169
{
155170
return $this->TemplatePolicies;

0 commit comments

Comments
 (0)