xref: /webtrees/app/Statistics/Repository/Interfaces/HitCountRepositoryInterface.php (revision d11be7027e34e3121be11cc025421873364403f9)
18add1155SRico Sonntag<?php
23976b470SGreg Roach
38add1155SRico Sonntag/**
48add1155SRico Sonntag * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
68add1155SRico Sonntag * This program is free software: you can redistribute it and/or modify
78add1155SRico Sonntag * it under the terms of the GNU General Public License as published by
88add1155SRico Sonntag * the Free Software Foundation, either version 3 of the License, or
98add1155SRico Sonntag * (at your option) any later version.
108add1155SRico Sonntag * This program is distributed in the hope that it will be useful,
118add1155SRico Sonntag * but WITHOUT ANY WARRANTY; without even the implied warranty of
128add1155SRico Sonntag * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
138add1155SRico Sonntag * GNU General Public License for more details.
148add1155SRico Sonntag * You should have received a copy of the GNU General Public License
1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
168add1155SRico Sonntag */
17fcfa147eSGreg Roach
188add1155SRico Sonntagdeclare(strict_types=1);
198add1155SRico Sonntag
208add1155SRico Sonntagnamespace Fisharebest\Webtrees\Statistics\Repository\Interfaces;
218add1155SRico Sonntag
228add1155SRico Sonntag/**
238add1155SRico Sonntag * A repository providing methods for hit count related statistics.
248add1155SRico Sonntag */
258add1155SRico Sonntaginterface HitCountRepositoryInterface
268add1155SRico Sonntag{
278add1155SRico Sonntag    /**
288add1155SRico Sonntag     * How many times has a page been viewed.
298add1155SRico Sonntag     *
308add1155SRico Sonntag     * @param string $page_parameter
318add1155SRico Sonntag     *
328add1155SRico Sonntag     * @return string
338add1155SRico Sonntag     */
348add1155SRico Sonntag    public function hitCount(string $page_parameter = ''): string;
358add1155SRico Sonntag
368add1155SRico Sonntag    /**
378add1155SRico Sonntag     * How many times has a page been viewed.
388add1155SRico Sonntag     *
398add1155SRico Sonntag     * @param string $page_parameter
408add1155SRico Sonntag     *
418add1155SRico Sonntag     * @return string
428add1155SRico Sonntag     */
438add1155SRico Sonntag    public function hitCountUser(string $page_parameter = ''): string;
448add1155SRico Sonntag
458add1155SRico Sonntag    /**
468add1155SRico Sonntag     * How many times has a page been viewed.
478add1155SRico Sonntag     *
488add1155SRico Sonntag     * @param string $page_parameter
498add1155SRico Sonntag     *
508add1155SRico Sonntag     * @return string
518add1155SRico Sonntag     */
528add1155SRico Sonntag    public function hitCountIndi(string $page_parameter = ''): string;
538add1155SRico Sonntag
548add1155SRico Sonntag    /**
558add1155SRico Sonntag     * How many times has a page been viewed.
568add1155SRico Sonntag     *
578add1155SRico Sonntag     * @param string $page_parameter
588add1155SRico Sonntag     *
598add1155SRico Sonntag     * @return string
608add1155SRico Sonntag     */
618add1155SRico Sonntag    public function hitCountFam(string $page_parameter = ''): string;
628add1155SRico Sonntag
638add1155SRico Sonntag    /**
648add1155SRico Sonntag     * How many times has a page been viewed.
658add1155SRico Sonntag     *
668add1155SRico Sonntag     * @param string $page_parameter
678add1155SRico Sonntag     *
688add1155SRico Sonntag     * @return string
698add1155SRico Sonntag     */
708add1155SRico Sonntag    public function hitCountSour(string $page_parameter = ''): string;
718add1155SRico Sonntag
728add1155SRico Sonntag    /**
738add1155SRico Sonntag     * How many times has a page been viewed.
748add1155SRico Sonntag     *
758add1155SRico Sonntag     * @param string $page_parameter
768add1155SRico Sonntag     *
778add1155SRico Sonntag     * @return string
788add1155SRico Sonntag     */
798add1155SRico Sonntag    public function hitCountRepo(string $page_parameter = ''): string;
808add1155SRico Sonntag
818add1155SRico Sonntag    /**
828add1155SRico Sonntag     * How many times has a page been viewed.
838add1155SRico Sonntag     *
848add1155SRico Sonntag     * @param string $page_parameter
858add1155SRico Sonntag     *
868add1155SRico Sonntag     * @return string
878add1155SRico Sonntag     */
888add1155SRico Sonntag    public function hitCountNote(string $page_parameter = ''): string;
898add1155SRico Sonntag
908add1155SRico Sonntag    /**
918add1155SRico Sonntag     * How many times has a page been viewed.
928add1155SRico Sonntag     *
938add1155SRico Sonntag     * @param string $page_parameter
948add1155SRico Sonntag     *
958add1155SRico Sonntag     * @return string
968add1155SRico Sonntag     */
978add1155SRico Sonntag    public function hitCountObje(string $page_parameter = ''): string;
988add1155SRico Sonntag}
99