You are here

final class UserToDeveloperConversionResult in Apigee Edge 8

Contains the result of a Drupal user to developer conversion.

Hierarchy

Expanded class hierarchy of UserToDeveloperConversionResult

4 files declare their use of UserToDeveloperConversionResult
DeveloperCreateUpdate.php in src/Job/DeveloperCreateUpdate.php
UserDeveloperConverter.php in src/UserDeveloperConverter.php
UserDeveloperConverter.php in tests/modules/apigee_edge_test/src/UserDeveloperConverter.php
UserDeveloperConverterInterface.php in src/UserDeveloperConverterInterface.php

File

src/Structure/UserToDeveloperConversionResult.php, line 28

Namespace

Drupal\apigee_edge\Structure
View source
final class UserToDeveloperConversionResult extends UserDeveloperConversionResult {

  /**
   * The result of the conversion.
   *
   * @var \Drupal\apigee_edge\Entity\DeveloperInterface
   */
  private $developer;

  /**
   * UserToDeveloperResult constructor.
   *
   * @param \Drupal\apigee_edge\Entity\DeveloperInterface $developer
   *   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(DeveloperInterface $developer, int $successfully_appliedchanges, array $problems = []) {
    $this->developer = $developer;
    parent::__construct($successfully_appliedchanges, $problems);
  }

  /**
   * The created developer from a user.
   *
   * @return \Drupal\apigee_edge\Entity\DeveloperInterface
   *   Developer object.
   */
  public function getDeveloper() : DeveloperInterface {
    return $this->developer;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
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.
UserToDeveloperConversionResult::$developer private property The result of the conversion.
UserToDeveloperConversionResult::getDeveloper public function The created developer from a user.
UserToDeveloperConversionResult::__construct public function UserToDeveloperResult constructor. Overrides UserDeveloperConversionResult::__construct