1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/app/Event/UserProfileSyncEvent.php
2016-07-23 14:11:39 +02:00

64 lines
1.1 KiB
PHP

<?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;
}
}