Skip to content

Commit

Permalink
Service\Amazon: setValues() mutator added to Attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
farazdagi committed Oct 29, 2010
1 parent 01152fc commit c7bc6fa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions library/Zend/Service/Amazon/SimpleDb/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,12 @@ public function addValue($value)
$this->_values[] = $value;
}
}

public function setValues($values)
{
if (!is_array($values)) {
$values = array($values);
}
$this->_values = $values;
}
}

0 comments on commit c7bc6fa

Please sign in to comment.