JanrainDataContainer.php in Janrain Registration 8
Namespace
Drupal\janrain_capture\UserFile
src/User/JanrainDataContainer.phpView source
<?php
namespace Drupal\janrain_capture\User;
/**
* The container for the data.
*/
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});
}
}
Classes
Name![]() |
Description |
---|---|
JanrainDataContainer | The container for the data. |