public function setValue($key, array $value, string $table)
    {
        $this->checkTable($table);

        $this->$table->set($key, ['value' => json_encode($value)]);

        return $this;
    }
public function setValue($key, array $value, string $table)
    {
        $this->checkTable($table);

        $this->$table->set($key, ['value' => json_encode($value)]);

        return $this;
    }
public function setValue ( $ key , array $ value , string $ table ) { $ this -> checkTable ( $ table ) ; $ this -> $ table -> set ( $ key , [ 'value' => json_encode ( $ value ) ] ) ; return $ this ; }
Set value to table

@param $key
@param array $value
@param string $table

@return $this
Set value to table