You are here

class ConfigUpdateResult in Commerce Core 8.2

Result object for configuration updates.

Hierarchy

Expanded class hierarchy of ConfigUpdateResult

File

src/Config/ConfigUpdateResult.php, line 8

Namespace

Drupal\commerce\Config
View source
class ConfigUpdateResult {

  /**
   * The success messages keyed by config name.
   *
   * @var string[]
   */
  protected $succeeded = [];

  /**
   * The failure messages keyed by config name.
   *
   * @var string[]
   */
  protected $failed = [];

  /**
   * Constructs a new ConfigUpdateResult object.
   *
   * @param string[] $succeeded
   *   The success messages keyed by config name.
   * @param string[] $failed
   *   The failure messages keyed by config name.
   */
  public function __construct(array $succeeded, array $failed) {
    $this->succeeded = $succeeded;
    $this->failed = $failed;
  }

  /**
   * Gets the success messages.
   *
   * @return string[]
   *   The success messages keyed by config name.
   */
  public function getSucceeded() {
    return $this->succeeded;
  }

  /**
   * Gets the failure messages.
   *
   * @return string[]
   *   The failure messages keyed by config name.
   */
  public function getFailed() {
    return $this->failed;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigUpdateResult::$failed protected property The failure messages keyed by config name.
ConfigUpdateResult::$succeeded protected property The success messages keyed by config name.
ConfigUpdateResult::getFailed public function Gets the failure messages.
ConfigUpdateResult::getSucceeded public function Gets the success messages.
ConfigUpdateResult::__construct public function Constructs a new ConfigUpdateResult object.