summaryrefslogtreecommitdiff
path: root/app/Event/AuthSuccessEvent.php
blob: 38323e8259aa8be7b82b4b287afdb4e1e8f2691e (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php

namespace Kanboard\Event;

use Symfony\Component\EventDispatcher\Event as BaseEvent;

/**
 * Authentication Success Event
 *
 * @package  event
 * @author   Frederic Guillot
 */
class AuthSuccessEvent extends BaseEvent
{
    /**
     * Authentication provider name
     *
     * @access private
     * @var string
     */
    private $authType;

    /**
     * Constructor
     *
     * @access public
     * @param  string $authType
     */
    public function __construct($authType)
    {
        $this->authType = $authType;
    }

    /**
     * Get authentication type
     *
     * @return string
     */
    public function getAuthType()
    {
        return $this->authType;
    }
}