Skip to content

Commit 95879ab

Browse files
author
Fabio Giacomoni
committed
Aggiunta chiamata di controllo stato webspace
1 parent 48f77a0 commit 95879ab

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Api/Operator/Webspace.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,22 @@ public function getCompleteList()
293293
}
294294

295295

296+
/**
297+
* @return string
298+
*/
299+
public function getSubscriptionStatus()
300+
{
301+
$items = $this->_getItems( Struct\CompleteGeneralInfo::class, 'gen_info' );
302+
$item = reset($items );
303+
304+
if( !isset( $item->Status ) or is_null( $item->Status ) or $item->Status === '' ) {
305+
return null;
306+
}
307+
308+
return $item->Status;
309+
}
310+
311+
296312
/**
297313
* @param string $field
298314
* @param int|string $value

0 commit comments

Comments
 (0)