Arr::set($this->_data, $this->_offset($offset), $this->_fixValue($value));
}
+ public function push($offset, $value)
+ {
+ $offset = self::square_brackets_to_dots($offset);
+ $newValue = $this->get($offset, []);
+ $newValue[] = $value;
+ Arr::set($this->_data, $this->_offset($offset), $newValue);
+ }
+
public function setRaw($key, $value)
{
$this->_data[$key] = $value;
/**
* @return false|string
*/
- public function asJSON(){
+ public function asJSON()
+ {
return json_encode($this->getRawData());
}
}