| 1 | <?php |
||
| 25 | class ProvePhonePossessionCommand extends AbstractCommand implements SelfServiceExecutable |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * The ID of an existing identity. |
||
| 29 | * |
||
| 30 | * @Assert\NotBlank() |
||
| 31 | * @Assert\Type(type="string") |
||
| 32 | * |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | public $identityId; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * The ID of the second factor to create. |
||
| 39 | * |
||
| 40 | * @Assert\NotBlank() |
||
| 41 | * @Assert\Type(type="string") |
||
| 42 | * |
||
| 43 | * @var string |
||
| 44 | */ |
||
| 45 | public $secondFactorId; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * The phone number |
||
| 49 | * |
||
| 50 | * @Assert\NotBlank() |
||
| 51 | * @Assert\Type(type="string") |
||
| 52 | * @Assert\Regex(pattern="~^\+[\d\s]+ \(0\) \d+$~") |
||
| 53 | * |
||
| 54 | * @var string |
||
| 55 | */ |
||
| 56 | public $phoneNumber; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function getIdentityId() |
||
| 65 | } |
||
| 66 |