blob: c02e1d89d6a4f1ba4ae806f3084a1871dbd75bab (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
<?php
namespace Kanboard\Event;
use Kanboard\Core\User\UserProviderInterface;
use Kanboard\User\LdapUserProvider;
use Symfony\Component\EventDispatcher\Event;
/**
* Class UserProfileSyncEvent
*
* @package Kanboard\Event
* @author Fredic Guillot
*/
class UserProfileSyncEvent extends Event
{
/**
* User profile
*
* @var array
*/
private $profile;
/**
* User provider
*
* @var UserProviderInterface
*/
private $user;
/**
* UserProfileSyncEvent constructor.
*
* @param array $profile
* @param UserProviderInterface $user
*/
public function __construct(array $profile, UserProviderInterface $user)
{
$this->profile = $profile;
$this->user = $user;
}
/**
* Get user profile
*
* @access public
* @return array
*/
public function getProfile()
{
return $this->profile;
}
/**
* Get user provider object
*
* @access public
* @return UserProviderInterface|LdapUserProvider
*/
public function getUser()
{
return $this->user;
}
}
|