Beispiel #1
0
 /**
  * @return array
  */
 public function all()
 {
     return parent::all();
 }
Beispiel #2
0
 /**
  * Set header information
  *
  * @param $name
  * @param $value
  * @param bool $shouldReplace
  */
 public function set($name, $value, $shouldReplace = true)
 {
     $name = $this->normalizeName($name);
     $value = (array) $value;
     if ($shouldReplace || !$this->has($name)) {
         parent::add($name, $value);
     } else {
         parent::add($name, array_merge($this->data[$name], $value));
     }
 }