public function describePlacementGroups(ListDataType $groupNameList = null, PlacementGroupFilterList $filter = null)
{
$result = null;
$options = array();
if ($groupNameList !== null) {
$options = array_merge($options, $groupNameList->getQueryArrayBare('GroupName'));
}
if ($filter !== null) {
$options = array_merge($options, $filter->getQueryArrayBare('Filter'));
}
$response = $this->client->call(ucfirst(__FUNCTION__), $options);
if ($response->getError() === false) {
$sxml = simplexml_load_string($response->getRawContent());
$response = null;
$result = new PlacementGroupList();
$result->setEc2($this->ec2);
$result->setRequestId((string) $sxml->requestId);
if (isset($sxml->placementGroupSet->item)) {
foreach ($sxml->placementGroupSet->item as $v) {
$item = $this->_loadPlacementGroupData($v);
$result->append($item);
unset($item);
}
}
}
return $result;
}