1 | <?php |
||
23 | final class ExportRaSecondFactorsCommand |
||
24 | { |
||
25 | const STATUS_UNVERIFIED = 'unverified'; |
||
26 | const STATUS_VERIFIED = 'verified'; |
||
27 | const STATUS_VETTED = 'vetted'; |
||
28 | const STATUS_REVOKED = 'revoked'; |
||
29 | |||
30 | /** |
||
31 | * @Assert\NotBlank(message="ra.search_ra_second_factors.actor.blank") |
||
32 | * @Assert\Type("string", message="ra.search_ra_second_factors.actor.type") |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | public $actorId; |
||
37 | |||
38 | /** |
||
39 | * @var string|null |
||
40 | */ |
||
41 | public $name; |
||
42 | |||
43 | /** |
||
44 | * @var string|null |
||
45 | */ |
||
46 | public $type; |
||
47 | |||
48 | /** |
||
49 | * @var string|null The second factor type's ID (eg. Yubikey public ID) |
||
50 | */ |
||
51 | public $secondFactorId; |
||
52 | |||
53 | /** |
||
54 | * @var string|null |
||
55 | */ |
||
56 | public $email; |
||
57 | |||
58 | /** |
||
59 | * @var string|null |
||
60 | */ |
||
61 | public $institution; |
||
62 | |||
63 | /** |
||
64 | * @Assert\Choice( |
||
65 | * {"unverified", "verified", "vetted", "revoked"}, |
||
66 | * message="ra.search_ra_second_factors.status.invalid_choice" |
||
67 | * ) |
||
68 | * |
||
69 | * @var string|null One of the STATUS_* constants. |
||
70 | */ |
||
71 | public $status; |
||
72 | |||
73 | /** |
||
74 | * @Assert\Choice( |
||
75 | * {"name", "type", "secondFactorId", "email", "status"}, |
||
76 | * message="ra.search_ra_second_factors.order_by.invalid_choice" |
||
77 | * ) |
||
78 | * |
||
79 | * @var string|null |
||
80 | */ |
||
81 | public $orderBy; |
||
82 | |||
83 | /** |
||
84 | * @Assert\Choice({"asc", "desc"}, message="ra.search_ra_second_factors.order_direction.invalid_choice") |
||
85 | * |
||
86 | * @var string|null |
||
87 | */ |
||
88 | public $orderDirection; |
||
89 | |||
90 | /** |
||
91 | * Builds the command from a SearchRaSecondFactorsCommand |
||
92 | * @param SearchRaSecondFactorsCommand $command |
||
93 | * @return ExportRaSecondFactorsCommand |
||
94 | */ |
||
95 | public static function fromSearchCommand(SearchRaSecondFactorsCommand $command) |
||
111 | } |
||
112 |