GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

InformationCollectionStruct   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 38
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCollectedFieldValue() 0 4 1
A getCollectedFields() 0 4 1
A setCollectedFieldValue() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Netgen\Bundle\EzFormsBundle\Form\Payload;
6
7
final class InformationCollectionStruct
8
{
9
    /**
10
     * @var mixed[] An array of field values like[$fieldDefIdentifier]
11
     */
12
    private $collectedData;
13
14
    /**
15
     * Returns value for $fieldDefIdentifier.
16
     *
17
     * @param string $fieldDefIdentifier
18
     *
19
     * @return mixed
20
     */
21
    public function getCollectedFieldValue(string $fieldDefIdentifier)
22
    {
23
        return $this->collectedData[$fieldDefIdentifier] ?? null;
24
    }
25
26
    /**
27
     * This method returns the complete fields collection.
28
     */
29
    public function getCollectedFields(): array
30
    {
31
        return $this->collectedData;
32
    }
33
34
    /**
35
     * Sets value for $fieldDefIdentifier.
36
     *
37
     * @param string $fieldDefIdentifier
38
     * @param mixed $value
39
     */
40
    public function setCollectedFieldValue(string $fieldDefIdentifier, $value): void
41
    {
42
        $this->collectedData[$fieldDefIdentifier] = $value;
43
    }
44
}
45