You are here

MiniorangeCustomerProfile.php in Google Authenticator / 2 Factor Authentication - 2FA 8

Same filename and directory in other branches
  1. 8.2 src/MiniorangeCustomerProfile.php

Contains constants class.

File

src/MiniorangeCustomerProfile.php
View source
<?php

/**
 * @file
 * Contains constants class.
 */
namespace Drupal\miniorange_2fa;


/**
 * @file
 * This class represents User Profile.
 */
class MiniorangeCustomerProfile {
  private $customer_id;
  private $registered_email;
  private $api_key;
  private $token_key;
  private $app_secret;
  private $registered_phone;

  /**
   * Constructor.
   */
  public function __construct() {
    $this->customer_id = \Drupal::config('miniorange_2fa.settings')
      ->get('mo_auth_customer_id');
    $this->registered_email = \Drupal::config('miniorange_2fa.settings')
      ->get('mo_auth_customer_admin_email');
    $this->api_key = \Drupal::config('miniorange_2fa.settings')
      ->get('mo_auth_customer_api_key');
    $this->token_key = \Drupal::config('miniorange_2fa.settings')
      ->get('mo_auth_customer_admin_token');
    $this->app_secret = \Drupal::config('miniorange_2fa.settings')
      ->get('mo_auth_customer_app_secret');
    $this->registered_phone = \Drupal::config('miniorange_2fa.settings')
      ->get('mo_auth_customer_admin_phone');
  }
  public function getCustomerID() {
    return $this->customer_id;
  }
  public function getAPIKey() {
    return $this->api_key;
  }
  public function getTokenKey() {
    return $this->token_key;
  }
  public function getAppSecret() {
    return $this->app_secret;
  }
  public function getRegisteredEmail() {
    return $this->registered_email;
  }
  public function getRegisteredPhone() {
    return $this->registered_phone;
  }

}

Classes

Namesort descending Description
MiniorangeCustomerProfile @file This class represents User Profile.