summaryrefslogtreecommitdiff
path: root/app/Event/AuthEvent.php
blob: 7cbced837aa8183fe9b74fb717e07a7a2d2a0b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace Kanboard\Event;

use Symfony\Component\EventDispatcher\Event as BaseEvent;

class AuthEvent extends BaseEvent
{
    private $auth_name;
    private $user_id;

    public function __construct($auth_name, $user_id)
    {
        $this->auth_name = $auth_name;
        $this->user_id = $user_id;
    }

    public function getUserId()
    {
        return $this->user_id;
    }

    public function getAuthType()
    {
        return $this->auth_name;
    }
}