Passed
Push — master ( cc102a...900e51 )
by Marcel
06:21 queued 04:16
created

LoadAdditionalScriptsEvent::addHiddenField()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * Audio Player
7
 *
8
 * This file is licensed under the Affero General Public License version 3 or
9
 * later. See the LICENSE.md file.
10
 *
11
 * @author Marcel Scherello <[email protected]>
12
 * @author Sebastian Doell <[email protected]>
13
 * @copyright 2016-2021 Marcel Scherello
14
 * @copyright 2015 Sebastian Doell
15
 */
16
namespace OCA\audioplayer\Event;
17
18
use OCP\EventDispatcher\Event;
19
20
class LoadAdditionalScriptsEvent extends Event {
21
    private $hiddenFields = [];
22
23
    public function addHiddenField(string $name, string $value): void {
24
        $this->hiddenFields[$name] = $value;
25
    }
26
27
    public function getHiddenFields(): array {
28
        return $this->hiddenFields;
29
    }
30
}