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

LoadAdditionalScriptsEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 9
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addHiddenField() 0 2 1
A getHiddenFields() 0 2 1
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
}