/** * @param $attribute * @param $value * * @return $this * @throws \ObjectivePHP\Primitives\Exception */ public function set($attribute, $value) { // handle collections // // EDIT I honnestly do not remember why the hell I wrote that piece of code oO - Rusty if ($this->has($attribute)) { $set = $this->get($attribute); if ($set instanceof Collection) { $set->clear()->append($value); return $this; } } parent::set($attribute, $value); return $this; }
/** * @param $param * @param $value * * @throws \ObjectivePHP\Primitives\Exception */ public function setParam($param, $value) { $this->params->set($param, $value); }