forked from HermanPeeren/releasemaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSources.php
More file actions
36 lines (30 loc) · 933 Bytes
/
Copy pathSources.php
File metadata and controls
36 lines (30 loc) · 933 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
36
<?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\Source\File;
use Akeeba\ReleaseMaker\Contracts\ConfigurationSection;
use Akeeba\ReleaseMaker\Mixin\MagicGetterAware;
/**
* File sources configuration section
*
* @property-read File[] $sources File sources
*
* @since 2.0.0
*/
final class Sources implements ConfigurationSection
{
use MagicGetterAware;
private array $sources = [];
/** @noinspection PhpUnusedParameterInspection */
public function __construct(array $configuration, Configuration $parent)
{
$this->sources = array_map(function ($source) use ($parent) {
return new File($source, $parent);
}, $configuration);
}
}