You are here

class JanrainDataContainer in Janrain Registration 8

The container for the data.

Hierarchy

Expanded class hierarchy of JanrainDataContainer

File

src/User/JanrainDataContainer.php, line 8

Namespace

Drupal\janrain_capture\User
View source
class JanrainDataContainer {

  /**
   * The profile's data.
   *
   * @var \stdClass
   */
  protected $data;

  /**
   * {@inheritdoc}
   */
  public function __construct(\stdClass $data) {
    $this->data = $data;
  }

  /**
   * {@inheritdoc}
   */
  public function __isset($name) : bool {
    return property_exists($this->data, $name);
  }

  /**
   * {@inheritdoc}
   */
  public function __get($name) {
    return $this->data->{$name};
  }

  /**
   * {@inheritdoc}
   */
  public function __unset($name) : void {
    unset($this->data->{$name});
  }

}

Members