/
ConfigUpdateResult.php
57 lines (49 loc) · 1.32 KB
/
ConfigUpdateResult.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
namespace Drupal\commerce\Config;
/**
* Result object for displaying configuration update results.
*/
class ConfigUpdateResult {
/**
* The configuration names that succeeded to update.
*
* @var \Drupal\Component\Render\MarkupInterface[]
*/
protected $succeeded = [];
/**
* The configuration names that failed to update.
*
* @var \Drupal\Component\Render\MarkupInterface[]
*/
protected $failed = [];
/**
* Constructs a new ConfigUpdateResult object.
*
* @param array $succeeded
* An array of configuration names that succeeded to update.
* @param array $failed
* An array of configuration names that failed to update.
*/
public function __construct(array $succeeded, array $failed) {
$this->succeeded = $succeeded;
$this->failed = $failed;
}
/**
* Gets the configuration object names that succeeded to update.
*
* @return \Drupal\Component\Render\MarkupInterface[]
* An array of messages, keyed by configuration name.
*/
public function getSucceeded() {
return $this->succeeded;
}
/**
* Gets the configuration object names that failed to update.
*
* @return \Drupal\Component\Render\MarkupInterface[]
* An array of messages, keyed by configuration name.
*/
public function getFailed() {
return $this->failed;
}
}