123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace Packagist\WebBundle\Form\Model;
- use Symfony\Component\Validator\Constraints as Assert;
- class EnableTwoFactorRequest
- {
- /**
- * @var string
- * @Assert\NotBlank
- */
- protected $secret;
- /**
- * @var ?string
- * @Assert\NotBlank
- */
- protected $code;
- public function __construct(string $secret)
- {
- $this->secret = $secret;
- }
- public function getSecret(): string
- {
- return $this->secret;
- }
- public function setSecret(string $secret): void
- {
- $this->secret = $secret;
- }
- public function getCode(): ?string
- {
- return $this->code;
- }
- public function setCode(string $code): void
- {
- $this->code = $code;
- }
- }
|