public function setParameters(array $parameters) { if (array_key_exists('product_id', $parameters)) { $this->productId = $parameters['product_id']; } else { $this->productId = null; } parent::setParameters($parameters); }
public function setParameters(array $parameters) { if (array_key_exists('category_id', $parameters)) { $this->categoryId = $parameters['category_id']; } else { $this->categoryId = null; } parent::setParameters($parameters); }