public function notifyUser()
    {
        switch ($this->type) {
            case self::TYPE_PASSWORD_RESET:
                $event = new PasswordReset;
                break;
            case self::TYPE_ACTIVATION:
                $event = new UserActivation;
                break;
            case self::TYPE_INVITATION:
                $event = new UserInvitation;
                break;
        }

        $this->user->notify($event);
    }
public function notifyUser()
    {
        switch ($this->type) {
            case self::TYPE_PASSWORD_RESET:
                $event = new PasswordReset;
                break;
            case self::TYPE_ACTIVATION:
                $event = new UserActivation;
                break;
            case self::TYPE_INVITATION:
                $event = new UserInvitation;
                break;
        }

        $this->user->notify($event);
    }
public function notifyUser ( ) { switch ( $ this -> type ) { case self :: TYPE_PASSWORD_RESET : $ event = new PasswordReset ; break ; case self :: TYPE_ACTIVATION : $ event = new UserActivation ; break ; case self :: TYPE_INVITATION : $ event = new UserInvitation ; break ; } $ this -> user -> notify ( $ event ) ; }
Notify the user of this token.
Notify the user of this token .