RawValue::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
nc 1
nop 1
dl 0
loc 3
c 0
b 0
f 0
cc 1
rs 10
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
3
namespace erasys\OpenApi;
4
5
/**
6
 * Represents a raw value.
7
 * This allows, for example exporting a null value, which is by default excluded when exporting to array.
8
 *
9
 * Not part of the OAS specification.
10
 */
11
class RawValue
12
{
13
    /**
14
     * @var mixed
15
     */
16
    private $value;
17
18
    /**
19
     * @param mixed $value
20
     */
21 3
    public function __construct($value)
22
    {
23 3
        $this->value = $value;
24 3
    }
25
26
    /**
27
     * @return mixed
28
     */
29 3
    public function getValue()
30
    {
31 3
        return $this->value;
32
    }
33
}
34