/** * Sets the asset * @param string $key * @param SupsysticSlider_Ui_Asset $value * @throws InvalidArgumentException * @return SupsysticSlider_Ui_AssetsCollection */ public function set($key, $value) { if (!$value instanceof SupsysticSlider_Ui_Asset) { throw new InvalidArgumentException('Parameter 2 must be instance of SupsysticSlider_Ui_Asset.'); } if ($key !== $value->getHandle()) { throw new InvalidArgumentException('The handle of the asset my be the same as $key value'); } parent::set($key, $value); return $this; }
/** * {@inheritdoc} */ public function set($key, $value) { $this->callListener('onUpdate', $key, $value); return parent::set($key, $value); }