| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class ResetPasswordRequest implements ResetPasswordRequestInterface |
||
| 14 | { |
||
| 15 | use UserTrait; |
||
| 16 | use ResetPasswordRequestTrait; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @ORM\Id() |
||
| 20 | * @ORM\GeneratedValue() |
||
| 21 | * @ORM\Column(type="integer") |
||
| 22 | */ |
||
| 23 | protected $id; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User") |
||
| 27 | */ |
||
| 28 | protected $user; |
||
| 29 | |||
| 30 | public function __construct(object $user, \DateTimeInterface $expiresAt, string $selector, string $hashedToken) |
||
| 31 | { |
||
| 32 | $this->user = $user; |
||
| 33 | $this->initialize($expiresAt, $selector, $hashedToken); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getId() |
||
| 37 | { |
||
| 38 | return $this->id; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return ResetPasswordRequest |
||
| 43 | */ |
||
| 44 | public function setId($id) |
||
| 49 | } |
||
| 50 | } |
||
| 51 |