Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
n/a
0 / 0
CRAP
n/a
0 / 0
AuthLogFilterDto
n/a
0 / 0
n/a
0 / 0
1
n/a
0 / 0
 __construct
n/a
0 / 0
n/a
0 / 0
1
1<?php
2
3declare(strict_types=1);
4
5/** @license For full copyright and license information, please see the LICENSE.md file. */
6
7namespace App\Modules\LogsUserAuth\Application\DTO;
8
9defined('AMMONLY_APP') || exit('Direct script access is forbidden.');
10
11use Yiisoft\Validator\Rule\Length;
12use Yiisoft\Validator\Rule\Trim;
13
14/**
15 * Data Transfer Object for Auth Log DataGrid Filter Requests.
16 *
17 * Encapsulates filter parameters and applies Yii3 validation & trimming rules.
18 *
19 * @package App\Modules\LogsUserAuth\Application\DTO
20 */
21final class AuthLogFilterDto
22{
23    /**
24     * AuthLogFilterDto constructor.
25     */
26    public function __construct(
27        #[Trim]
28        #[Length(max: 50)]
29        public string $id = '',
30
31        #[Trim]
32        #[Length(max: 128)]
33        public string $username = '',
34
35        #[Trim]
36        #[Length(max: 10)]
37        public string $status = '',
38
39        #[Trim]
40        #[Length(max: 10)]
41        public string $failureReason = '',
42
43        #[Trim]
44        #[Length(max: 45)]
45        public string $ipAddress = '',
46
47        #[Trim]
48        #[Length(max: 256)]
49        public string $userAgent = '',
50
51        #[Trim]
52        #[Length(max: 16)]
53        public string $httpProtocol = '',
54
55        #[Trim]
56        #[Length(max: 50)]
57        public string $createdAt = ''
58    ) {
59        // @codeCoverageIgnoreStart
60    }
61        // @codeCoverageIgnoreEnd
62        // @codeCoverageIgnoreStart
63        // @codeCoverageIgnoreEnd
64}