public function describeDBInstances($dbInstanceIdentifier = null, $marker = null, $maxRecords = null)
{
$result = null;
$options = array();
if ($dbInstanceIdentifier !== null) {
$options['DBInstanceIdentifier'] = (string) $dbInstanceIdentifier;
}
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 DBInstanceList();
$result->setRds($this->rds);
$result->marker = $this->exist($sxml->DescribeDBInstancesResult->Marker) ? (string) $sxml->DescribeDBInstancesResult->Marker : null;
if (isset($sxml->DescribeDBInstancesResult->DBInstances->DBInstance)) {
foreach ($sxml->DescribeDBInstancesResult->DBInstances->DBInstance as $v) {
$item = $this->_loadDBInstanceData($v);
$result->append($item);
unset($item);
}
}
}
return $result;
}