public function push($key, $value)
    {
        $array = $this->get($key, []);

        if(!is_array($array))
            throw new JsonPropertyException('Cannot push value to non array');

        array_push($array, $value);

        return $this->set($key, $array);
    }
public function push($key, $value)
    {
        $array = $this->get($key, []);

        if(!is_array($array))
            throw new JsonPropertyException('Cannot push value to non array');

        array_push($array, $value);

        return $this->set($key, $array);
    }
public function push ( $ key , $ value ) { $ array = $ this -> get ( $ key , [ ] ) ; if ( ! is_array ( $ array ) ) throw new JsonPropertyException ( 'Cannot push value to non array' ) ; array_push ( $ array , $ value ) ; return $ this -> set ( $ key , $ array ) ; }
Push a value into an array assigned to the provided key.

@param $key
@param $value
@return mixed
@throws JsonPropertyException
Push a value into an array assigned to the provided key .