public function describeDBSecurityGroups($dBSecurityGroupName = null, $marker = null, $maxRecords = null)
{
$result = null;
$options = array();
if ($dBSecurityGroupName !== null) {
$options['DBSecurityGroupName'] = (string) $dBSecurityGroupName;
}
if ($marker !== null) {
$options['Marker'] = (string) $marker;
}
if ($maxRecords !== null) {
$options['MaxRecords'] = (int) $maxRecords;
}
$response = $this->client->call(ucfirst(__FUNCTION__), $options);
if ($response->getError() === false) {
$sxml = simplexml_load_string($response->getRawContent());
$result = new DBSecurityGroupList();
$result->setRds($this->rds);
$result->marker = $this->exist($sxml->DescribeDBSecurityGroupsResult->Marker) ? (string) $sxml->DescribeDBSecurityGroupsResult->Marker : null;
if (isset($sxml->DescribeDBSecurityGroupsResult->DBSecurityGroups->DBSecurityGroup)) {
foreach ($sxml->DescribeDBSecurityGroupsResult->DBSecurityGroups->DBSecurityGroup as $v) {
$item = $this->_loadDBSecurityGroupData($v);
$result->append($item);
unset($item);
}
}
}
return $result;
}