Passed
Push — master ( dba7cd...d89126 )
by Asmir
01:36
created

Header::getData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GoetasWebservices\SoapServices\Metadata\Headers;
6
7
class Header
8
{
9
    /**
10
     * @var object
11
     */
12
    private $data;
13
    /**
14
     * @var array
15
     */
16
    private $options = [];
17
18
    public function __construct(object $data, array $options = [])
19
    {
20
        $this->data = $data;
21
        $this->options = $options;
22
    }
23
24
    public function getData(): object
25
    {
26
        return $this->data;
27
    }
28
29
    public function getOptions(): array
30
    {
31
        return $this->options;
32
    }
33
34
    public function mustUnderstand(): Header
35
    {
36
        $this->options['mustUnderstand'] = true;
37
38
        return $this;
39
    }
40
}
41