public function getValue(string $key, string $table)
    {
        $this->checkTable($table);

        $value = $this->$table->get($key);

        return $value ? json_decode($value['value'], true) : [];
    }
public function getValue(string $key, string $table)
    {
        $this->checkTable($table);

        $value = $this->$table->get($key);

        return $value ? json_decode($value['value'], true) : [];
    }
public function getValue ( string $ key , string $ table ) { $ this -> checkTable ( $ table ) ; $ value = $ this -> $ table -> get ( $ key ) ; return $ value ? json_decode ( $ value [ 'value' ] , true ) : [ ] ; }
Get value from table

@param string $key
@param string $table

@return array|mixed
Get value from table