1<?php
2
3/*
4 * vim:set softtabstop=4 shiftwidth=4 expandtab:
5 *
6 *  LICENSE: GNU Affero General Public License, version 3 (AGPL-3.0-or-later)
7 * Copyright 2001 - 2020 Ampache.org
8 *
9 * This program is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU Affero General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU Affero General Public License for more details.
18 *
19 * You should have received a copy of the GNU Affero General Public License
20 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
21 *
22 */
23
24declare(strict_types=0);
25
26namespace Ampache\Module\Api\Method;
27
28use Ampache\Module\Api\Api;
29use Ampache\Module\System\Session;
30
31/**
32 * Class TagMethod
33 * @package Lib\ApiMethods
34 */
35final class TagMethod
36{
37    private const ACTION = 'tag';
38
39    /**
40     * tag
41     * MINIMUM_API_VERSION=380001
42     *
43     * This returns a single genre based on UID
44     *
45     * @param array $input
46     */
47    public static function tag(array $input)
48    {
49        Api::error(T_('Depreciated'), '4706', self::ACTION, 'removed', $input['api_format']);
50        Session::extend($input['auth']);
51    }
52}
53