xref: /webtrees/app/Statistics/Repository/Interfaces/HitCountRepositoryInterface.php (revision d812eb6b3dd6c33a96d07cd964cb4c3b88cec447)
1<?php
2
3/**
4 * webtrees: online genealogy
5 * Copyright (C) 2019 webtrees development team
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17declare(strict_types=1);
18
19namespace Fisharebest\Webtrees\Statistics\Repository\Interfaces;
20
21/**
22 * A repository providing methods for hit count related statistics.
23 */
24interface HitCountRepositoryInterface
25{
26    /**
27     * How many times has a page been viewed.
28     *
29     * @param string $page_parameter
30     *
31     * @return string
32     */
33    public function hitCount(string $page_parameter = ''): string;
34
35    /**
36     * How many times has a page been viewed.
37     *
38     * @param string $page_parameter
39     *
40     * @return string
41     */
42    public function hitCountUser(string $page_parameter = ''): string;
43
44    /**
45     * How many times has a page been viewed.
46     *
47     * @param string $page_parameter
48     *
49     * @return string
50     */
51    public function hitCountIndi(string $page_parameter = ''): string;
52
53    /**
54     * How many times has a page been viewed.
55     *
56     * @param string $page_parameter
57     *
58     * @return string
59     */
60    public function hitCountFam(string $page_parameter = ''): string;
61
62    /**
63     * How many times has a page been viewed.
64     *
65     * @param string $page_parameter
66     *
67     * @return string
68     */
69    public function hitCountSour(string $page_parameter = ''): string;
70
71    /**
72     * How many times has a page been viewed.
73     *
74     * @param string $page_parameter
75     *
76     * @return string
77     */
78    public function hitCountRepo(string $page_parameter = ''): string;
79
80    /**
81     * How many times has a page been viewed.
82     *
83     * @param string $page_parameter
84     *
85     * @return string
86     */
87    public function hitCountNote(string $page_parameter = ''): string;
88
89    /**
90     * How many times has a page been viewed.
91     *
92     * @param string $page_parameter
93     *
94     * @return string
95     */
96    public function hitCountObje(string $page_parameter = ''): string;
97}
98