1 | <?php |
||
11 | class Memory implements DocProviderInterface, SourceCodeProviderInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private $data; |
||
17 | |||
18 | public function __construct(array $data = []) |
||
22 | |||
23 | /** |
||
24 | * Get all available SugarCRM versions (sorted ASC). |
||
25 | * |
||
26 | * @param string $flav |
||
27 | * |
||
28 | * @return OrderedList |
||
29 | */ |
||
30 | public function getVersions($flav) |
||
34 | |||
35 | /** |
||
36 | * Get release notes for all available versions from given range. |
||
37 | * |
||
38 | * @param $flav |
||
39 | * @param OrderedList $versions |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | public function getReleaseNotes($flav, OrderedList $versions) |
||
52 | |||
53 | /** |
||
54 | * Gets all required information to perform health check. |
||
55 | * |
||
56 | * @param Version $version |
||
57 | * |
||
58 | * @return mixed |
||
59 | */ |
||
60 | public function getHealthCheckInfo(Version $version) |
||
64 | |||
65 | /** |
||
66 | * Gets all required information to perform upgrade. |
||
67 | * |
||
68 | * @param Version $version |
||
69 | * |
||
70 | * @return mixed |
||
71 | */ |
||
72 | public function getUpgraderInfo(Version $version) |
||
76 | |||
77 | /** |
||
78 | * Gets the list of potentially broken customizations (changed and deleted files) |
||
79 | * |
||
80 | * @param Upgrade $context |
||
81 | * |
||
82 | * @return mixed |
||
83 | */ |
||
84 | public function getPotentiallyBrokenCustomizations(Upgrade $context) |
||
88 | |||
89 | /** |
||
90 | * Gets the lists of upgrade steps for the given source |
||
91 | * |
||
92 | * @param Upgrade $context |
||
93 | * |
||
94 | * @return mixed |
||
95 | */ |
||
96 | public function getUpgradeSteps(Upgrade $context) |
||
100 | |||
101 | /** |
||
102 | * Gets data from memory by key. |
||
103 | * |
||
104 | * @param $key |
||
105 | * @param null $default |
||
106 | * |
||
107 | * @return mixed|null |
||
108 | */ |
||
109 | private function get($key, $default = null) |
||
115 | } |
||
116 |