public static function encodableClassVariable($class, $variable)
    {
        $getter = 'get' . str_replace('_', '', $variable);
        $setter = 'set' . str_replace('_', '', $variable);
        if (!method_exists($class, $getter) || !method_exists($class, $setter)) {
            return false;
        }

        return true;
    }