Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function add($item)
 {
     if ($item instanceof AbstractCommand && $item->getName() == 'DeleteObject') {
         $item = array('Key' => $item['Key'], 'VersionId' => $item['VersionId']);
     }
     if (!is_array($item) || !isset($item['Key'])) {
         throw new InvalidArgumentException('Item must be a DeleteObject command or array containing a Key and VersionId key.');
     }
     return parent::add($item);
 }