Passed
Push — ref ( 45b89b )
by Asmir
02:50
created

Header::mustUnderstand()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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