@@ -37,9 +37,9 @@ class AgentServiceRegistration extends AbstractModel {
3737 public $ Address = '' ;
3838 /** @var bool */
3939 public $ EnableTagOverride = false ;
40- /** @var \DCarbone\PHPConsulAPI\Agent\AgentCheck */
40+ /** @var \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck */
4141 public $ Check = null ;
42- /** @var \DCarbone\PHPConsulAPI\Agent\AgentCheck [] */
42+ /** @var \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck [] */
4343 public $ Checks = [];
4444
4545 /**
@@ -49,16 +49,16 @@ class AgentServiceRegistration extends AbstractModel {
4949 public function __construct (array $ data = []) {
5050 parent ::__construct ($ data );
5151
52- if (null !== $ this ->Check && !($ this ->Check instanceof AgentCheck )) {
53- $ this ->Check = new AgentCheck ((array )$ this ->Check );
52+ if (null !== $ this ->Check && !($ this ->Check instanceof AgentServiceCheck )) {
53+ $ this ->Check = new AgentServiceCheck ((array )$ this ->Check );
5454 }
5555
5656 if (0 < count ($ this ->Checks )) {
5757 $ this ->Checks = array_filter ($ this ->Checks );
5858 if (0 < ($ cnt = count ($ this ->Checks ))) {
5959 for ($ i = 0 , $ cnt = count ($ this ->Checks ); $ i < $ cnt ; $ i ++) {
60- if (!($ this ->Checks [$ i ] instanceof AgentCheck )) {
61- $ this ->Checks [$ i ] = new AgentCheck ($ this ->Checks [$ i ]);
60+ if (!($ this ->Checks [$ i ] instanceof AgentServiceCheck )) {
61+ $ this ->Checks [$ i ] = new AgentServiceCheck ($ this ->Checks [$ i ]);
6262 }
6363 }
6464 }
@@ -146,30 +146,30 @@ public function setEnableTagOverride($EnableTagOverride) {
146146 }
147147
148148 /**
149- * @return \DCarbone\PHPConsulAPI\Agent\AgentCheck
149+ * @return \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck
150150 */
151151 public function getCheck () {
152152 return $ this ->Check ;
153153 }
154154
155155 /**
156- * @param \DCarbone\PHPConsulAPI\Agent\AgentCheck $Check
156+ * @param \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck $Check
157157 * @return \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration
158158 */
159- public function setCheck (AgentCheck $ Check ) {
159+ public function setCheck (AgentServiceCheck $ Check ) {
160160 $ this ->Check = $ Check ;
161161 return $ this ;
162162 }
163163
164164 /**
165- * @return \DCarbone\PHPConsulAPI\Agent\AgentCheck []
165+ * @return \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck []
166166 */
167167 public function getChecks () {
168168 return $ this ->Checks ;
169169 }
170170
171171 /**
172- * @param \DCarbone\PHPConsulAPI\Agent\AgentCheck [] $Checks
172+ * @param \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck [] $Checks
173173 * @return \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration
174174 */
175175 public function setChecks (array $ Checks ) {
@@ -180,10 +180,10 @@ public function setChecks(array $Checks) {
180180 }
181181
182182 /**
183- * @param \DCarbone\PHPConsulAPI\Agent\AgentCheck $Check
183+ * @param \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck $Check
184184 * @return $this
185185 */
186- public function addCheck (AgentCheck $ Check ) {
186+ public function addCheck (AgentServiceCheck $ Check ) {
187187 $ this ->Checks [] = $ Check ;
188188 return $ this ;
189189 }
0 commit comments