| Total Complexity | 6 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class VerifyEmailForm extends Model |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | public $token; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var User |
||
| 17 | */ |
||
| 18 | private $user; |
||
| 19 | |||
| 20 | |||
| 21 | /** |
||
| 22 | * Creates a form model with given token. |
||
| 23 | * |
||
| 24 | * @param string $token |
||
| 25 | * @param array $config name-value pairs that will be used to initialize the object properties |
||
| 26 | * @throws InvalidArgumentException if token is empty or not valid |
||
| 27 | */ |
||
| 28 | public function __construct($token, array $config = []) |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Verify email |
||
| 42 | * |
||
| 43 | * @return User|null the saved model or null if saving fails |
||
| 44 | */ |
||
| 45 | public function verifyEmail() |
||
| 52 |