Exemplo n.º 1
0
 /**
  * Set value to quantity element in addition to current element
  *
  * @param array|string $value
  * @return $this
  */
 public function setValue($value)
 {
     if (is_array($value) && isset($value['qty'])) {
         $this->_qty->setValue($value['qty']);
     }
     parent::setValue(is_array($value) && isset($value['is_in_stock']) ? $value['is_in_stock'] : $value);
     return $this;
 }