You are here

public function JanrainUserProfile::__construct in Janrain Registration 8

Overrides JanrainDataContainer::__construct

File

src/User/JanrainUserProfile.php, line 13

Class

JanrainUserProfile
The user profile on Janrain.

Namespace

Drupal\janrain_capture\User

Code

public function __construct(\stdClass $data) {
  if (!isset($data->uuid, $data->email)) {
    throw new \InvalidArgumentException('An invalid user profile is given.');
  }
  parent::__construct($data);
}