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.

DataWrapper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Netgen\Bundle\EzFormsBundle\Form;
6
7
final class DataWrapper
8
{
9
    /**
10
     * One of the eZ Publish structs, like ContentCreateStruct, UserUpdateStruct and so on.
11
     *
12
     * @var mixed
13
     */
14
    public $payload;
15
16
    /**
17
     * Definition of the target.
18
     *
19
     * In case of Content or User target, this must be the corresponding ContentType.
20
     *
21
     * @var mixed|null
22
     */
23
    public $definition;
24
25
    /**
26
     * The target struct that applies to. E.g. Content, User, Section object and so on.
27
     *
28
     * This target makes sense only in update context, when creating target does not
29
     * exist (yet to be created).
30
     *
31
     * @var mixed|null
32
     */
33
    public $target;
34
35
    /**
36
     * Construct from payload, target and definition.
37
     *
38
     * @param mixed $payload
39
     * @param mixed|null $target
40
     * @param mixed|null $definition
41
     */
42
    public function __construct($payload, $definition = null, $target = null)
43
    {
44
        $this->payload = $payload;
45
        $this->definition = $definition;
46
        $this->target = $target;
47
    }
48
}
49