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