forked from HermanPeeren/releasemaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVolatile.php
More file actions
60 lines (50 loc) · 1.5 KB
/
Copy pathVolatile.php
File metadata and controls
60 lines (50 loc) · 1.5 KB
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
58
59
60
<?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\Volatile\File;
use Akeeba\ReleaseMaker\Contracts\ConfigurationSection;
use Akeeba\ReleaseMaker\Mixin\MagicGetterAware;
use Akeeba\ReleaseMaker\Mixin\MagicSetterAware;
/**
* Volatile data, used while the application is running
*
* @property File[] $files Files being processed
* @property object $release Release item being processed
*/
final class Volatile implements ConfigurationSection
{
use MagicGetterAware, MagicSetterAware;
private array $files;
private ?object $release;
/** @noinspection PhpUnusedParameterInspection */
public function __construct(array $configuration, Configuration $parent)
{
$this->files = [];
$this->release = null;
}
/** @noinspection PhpUnusedPrivateMethodInspection */
private function setFiles(array $files): void
{
$this->files = $files;
}
/** @noinspection PhpUnusedPrivateMethodInspection */
private function &getRelease(): ?object
{
return $this->release;
}
/** @noinspection PhpUnusedPrivateMethodInspection */
private function setRelease(?object $release): void
{
$this->release = $release;
}
/** @noinspection PhpUnusedPrivateMethodInspection */
private function &getFiles(): array
{
return $this->files;
}
}