Total Complexity | 2 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
25 | class StatsController extends Controller |
||
26 | { |
||
27 | // Public Properties |
||
28 | // ========================================================================= |
||
29 | |||
30 | /** |
||
31 | * @var null|int |
||
32 | */ |
||
33 | public ?int $limit = null; |
||
34 | |||
35 | // Protected Properties |
||
36 | // ========================================================================= |
||
37 | |||
38 | /** |
||
39 | * @var array|bool |
||
40 | */ |
||
41 | protected array|bool $allowAnonymous = [ |
||
42 | ]; |
||
43 | |||
44 | // Public Methods |
||
45 | // ========================================================================= |
||
46 | |||
47 | /** |
||
48 | * @param string $actionID |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | public function options($actionID): array |
||
53 | { |
||
54 | return [ |
||
55 | 'limit', |
||
56 | ]; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * Trim the Retour statistics database table |
||
61 | * |
||
62 | * @return int |
||
63 | */ |
||
64 | public function actionTrim(): int |
||
75 | } |
||
76 | |||
80 |