1 | <?php |
||
24 | class VerifiedSecondFactorSearchQuery implements HttpQuery |
||
25 | { |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $identityId; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $secondFactorId; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $registrationCode; |
||
40 | |||
41 | /** |
||
42 | * @param string $identityId |
||
43 | * @return self |
||
44 | */ |
||
45 | public function setIdentityId($identityId) |
||
53 | |||
54 | /** |
||
55 | * @param string $secondFactorId |
||
56 | * @return self |
||
57 | */ |
||
58 | public function setSecondFactorId($secondFactorId) |
||
66 | |||
67 | /** |
||
68 | * @param string $registrationCode |
||
69 | * @return self |
||
70 | */ |
||
71 | public function setRegistrationCode($registrationCode) |
||
79 | |||
80 | private function assertNonEmptyString($value, $name) |
||
81 | { |
||
82 | $message = sprintf( |
||
83 | '"%s" must be a non-empty string, "%s" given', |
||
84 | $name, |
||
85 | (is_object($value) ? get_class($value) : gettype($value)) |
||
86 | ); |
||
87 | |||
88 | Assert\that($value)->string($message)->notEmpty($message); |
||
89 | } |
||
90 | |||
91 | public function toHttpQuery() |
||
109 | } |
||
110 |