@@ -45,6 +45,9 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | private $expires_at; |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $type |
|
| 50 | + */ |
|
| 48 | 51 | public function __construct(User $user, $type, \DateTimeInterface $expires_at = null) |
| 49 | 52 | { |
| 50 | 53 | if (in_array($type, $this->getValidTypes()) === false) { |
@@ -87,7 +90,7 @@ discard block |
||
| 87 | 90 | } |
| 88 | 91 | |
| 89 | 92 | /** |
| 90 | - * @return mixed |
|
| 93 | + * @return string |
|
| 91 | 94 | */ |
| 92 | 95 | public function getToken() |
| 93 | 96 | { |