forked from HermanPeeren/releasemaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUpdates.php
More file actions
35 lines (29 loc) · 892 Bytes
/
Copy pathUpdates.php
File metadata and controls
35 lines (29 loc) · 892 Bytes
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
<?php
/**
* @package AkeebaReleaseMaker
* @copyright Copyright (c)2012-2021 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
namespace Akeeba\ReleaseMaker\Configuration\Section;
use Akeeba\ReleaseMaker\Configuration\Configuration;
use Akeeba\ReleaseMaker\Configuration\Update\Source;
use Akeeba\ReleaseMaker\Contracts\ConfigurationSection;
use Akeeba\ReleaseMaker\Mixin\MagicGetterAware;
/**
* Update sources configuration section
*
* @property-read Source[] $sources Update sources
*
* @since 2.0.0
*/
final class Updates implements ConfigurationSection
{
use MagicGetterAware;
private array $sources = [];
public function __construct(array $configuration, Configuration $parent)
{
$this->sources = array_map(function ($source) use ($parent) {
return new Source($source, $parent);
}, $configuration);
}
}