예제 #1
0
파일: DataBag.php 프로젝트: ovr/epilog
 public function set($key, $value)
 {
     return $this->data = \igorw\assoc_in($this->data, $this->makePath($key), $value);
 }
예제 #2
0
 /**
  * Set a value to a property
  *
  * @param array|string $props The property to set
  * @param mixed        $value
  *
  * @return mixed The set value
  */
 public function set($props, $value)
 {
     $this->conf->setConfig(\igorw\assoc_in($this->conf->getConfig(), $this->arrayize($props), $value));
     return $value;
 }