Completed
Pull Request — master (#9)
by Asmir
116:39 queued 86:42
created

ManifestType::setReference()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign;
4
5
/**
6
 * Class representing ManifestType
7
 *
8
 *
9
 * XSD Type: ManifestType
10
 */
11
class ManifestType
12
{
13
14
    /**
15
     * @property string $id
16
     */
17
    private $id = null;
18
19
    /**
20
     * @property
21
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\Reference[]
22
     * $reference
23
     */
24
    private $reference = 'array()';
25
26
    /**
27
     * Gets as id
28
     *
29
     * @return string
30
     */
31
    public function getId()
32
    {
33
        return $this->id;
34
    }
35
36
    /**
37
     * Sets a new id
38
     *
39
     * @param string $id
40
     * @return self
41
     */
42
    public function setId($id)
43
    {
44
        $this->id = $id;
45
        return $this;
46
    }
47
48
    /**
49
     * Adds as reference
50
     *
51
     * @return self
52
     * @param
53
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\Reference
54
     * $reference
55
     */
56
    public function addToReference(\GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\Reference $reference)
57
    {
58
        $this->reference[] = $reference;
59
        return $this;
60
    }
61
62
    /**
63
     * isset reference
64
     *
65
     * @param scalar $index
66
     * @return boolean
67
     */
68
    public function issetReference($index)
69
    {
70
        return isset($this->reference[$index]);
71
    }
72
73
    /**
74
     * unset reference
75
     *
76
     * @param scalar $index
77
     * @return void
78
     */
79
    public function unsetReference($index)
80
    {
81
        unset($this->reference[$index]);
82
    }
83
84
    /**
85
     * Gets as reference
86
     *
87
     * @return
88
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\Reference[]
89
     */
90
    public function getReference()
91
    {
92
        return $this->reference;
93
    }
94
95
    /**
96
     * Sets a new reference
97
     *
98
     * @param
99
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\Reference[]
100
     * $reference
101
     * @return self
102
     */
103
    public function setReference(array $reference)
104
    {
105
        $this->reference = $reference;
0 ignored issues
show
Documentation Bug introduced by
It seems like $reference of type array is incompatible with the declared type string of property $reference.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
106
        return $this;
107
    }
108
109
110
}
111
112