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