You are here

class SimpleLdapUserEvent in Simple LDAP 8

Hierarchy

  • class \Drupal\simple_ldap_user\Events\SimpleLdapUserEvent extends \Symfony\Component\EventDispatcher\GenericEvent

Expanded class hierarchy of SimpleLdapUserEvent

1 file declares its use of SimpleLdapUserEvent
SimpleLdapUserSync.php in modules/simple_ldap_user/src/SimpleLdapUserSync.php

File

modules/simple_ldap_user/src/Events/SimpleLdapUserEvent.php, line 16

Namespace

Drupal\simple_ldap_user\Events
View source
class SimpleLdapUserEvent extends GenericEvent {

  /**
   * @var \Drupal\simple_ldap_user\SimpleLdapUser
   */
  protected $ldapUser;

  /**
   * @var \Drupal\user\UserInterface
   */
  protected $drupalUser;

  /**
   * SimpleLdapUserEvent constructor.
   *
   * @param \Drupal\simple_ldap_user\SimpleLdapUser $ldap_user
   * @param \Drupal\user\UserInterface $drupal_user
   */
  public function __construct(SimpleLdapUser $ldap_user, UserInterface $drupal_user) {
    $this->ldapUser = $ldap_user;
    $this->drupalUser = $drupal_user;
  }

  /**
   * @return \Drupal\simple_ldap_user\SimpleLdapUser
   */
  public function getLdapUser() {
    return $this->ldapUser;
  }

  /**
   * @return \Drupal\user\UserInterface
   */
  public function getDrupalUser() {
    return $this->drupalUser;
  }

}

Members