final class DeveloperToUserConversionResult in Apigee Edge 8
Contains the result of a developer to Drupal user conversion.
Hierarchy
- class \Drupal\apigee_edge\Structure\UserDeveloperConversionResult
- class \Drupal\apigee_edge\Structure\DeveloperToUserConversionResult
Expanded class hierarchy of DeveloperToUserConversionResult
5 files declare their use of DeveloperToUserConversionResult
- UserCreate.php in src/
Job/ UserCreate.php - UserCreateUpdate.php in src/
Job/ UserCreateUpdate.php - UserDeveloperConverter.php in src/
UserDeveloperConverter.php - UserDeveloperConverterInterface.php in src/
UserDeveloperConverterInterface.php - UserUpdate.php in src/
Job/ UserUpdate.php
File
- src/
Structure/ DeveloperToUserConversionResult.php, line 28
Namespace
Drupal\apigee_edge\StructureView source
final class DeveloperToUserConversionResult extends UserDeveloperConversionResult {
/**
* The result of the conversion.
*
* @var \Drupal\user\UserInterface
*/
private $user;
/**
* DeveloperToUserConversionResult constructor.
*
* @param \Drupal\user\UserInterface $user
* The result of the conversion.
* @param int $successfully_appliedchanges
* Number of successfully applied _necessary_ changes.
* (It should not contains redundant changes, ex.: when the property value
* has not changed.)
* @param \Drupal\apigee_edge\Exception\UserDeveloperConversionException[] $problems
* Problems occurred meanwhile the conversion (ex.: field validation errors,
* etc.)
*/
public function __construct(UserInterface $user, int $successfully_appliedchanges, array $problems = []) {
$this->user = $user;
parent::__construct($successfully_appliedchanges, $problems);
}
/**
* The created Drupal user from a developer.
*
* @return \Drupal\user\UserInterface
* User object.
*/
public function getUser() : UserInterface {
return $this->user;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeveloperToUserConversionResult:: |
private | property | The result of the conversion. | |
DeveloperToUserConversionResult:: |
public | function | The created Drupal user from a developer. | |
DeveloperToUserConversionResult:: |
public | function |
DeveloperToUserConversionResult constructor. Overrides UserDeveloperConversionResult:: |
|
UserDeveloperConversionResult:: |
protected | property | Problems occurred meanwhile the conversion. | |
UserDeveloperConversionResult:: |
protected | property | Number of successfully applied _necessary_ changes. | |
UserDeveloperConversionResult:: |
public | function | Problems occurred meanwhile the conversion. | |
UserDeveloperConversionResult:: |
public | function | Number of _necessary_ changes that were successfully applied. |