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

Header   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 9
c 1
b 0
f 0
dl 0
loc 28
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getData() 0 3 1
A mustUnderstand() 0 4 1
A getOptions() 0 3 1
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