You are here

final class DeveloperToUserConversionResult in Apigee Edge 8

Contains the result of a developer to Drupal user conversion.

Hierarchy

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\Structure
View 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

Namesort descending Modifiers Type Description Overrides
DeveloperToUserConversionResult::$user private property The result of the conversion.
DeveloperToUserConversionResult::getUser public function The created Drupal user from a developer.
DeveloperToUserConversionResult::__construct public function DeveloperToUserConversionResult constructor. Overrides UserDeveloperConversionResult::__construct
UserDeveloperConversionResult::$problems protected property Problems occurred meanwhile the conversion.
UserDeveloperConversionResult::$successfullyAppliedChanges protected property Number of successfully applied _necessary_ changes.
UserDeveloperConversionResult::getProblems public function Problems occurred meanwhile the conversion.
UserDeveloperConversionResult::getSuccessfullyAppliedChanges public function Number of _necessary_ changes that were successfully applied.