Completed
Push — ws-security ( defbc5...87c9bd )
by Asmir
86:42 queued 56:41
created

DigestMethodType::issetAnyElement()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign;
4
5
/**
6
 * Class representing DigestMethodType
7
 *
8
 *
9
 * XSD Type: DigestMethodType
10
 */
11 View Code Duplication
class DigestMethodType
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
12
{
13
14
    /**
15
     * @property string $algorithm
16
     */
17
    private $algorithm = null;
18
19
    /**
20
     * @property mixed[] $anyElement
21
     */
22
    private $anyElement = array(
23
        
24
    );
25
26
    /**
27
     * Gets as algorithm
28
     *
29
     * @return string
30
     */
31
    public function getAlgorithm()
32
    {
33
        return $this->algorithm;
34
    }
35
36
    /**
37
     * Sets a new algorithm
38
     *
39
     * @param string $algorithm
40
     * @return self
41
     */
42
    public function setAlgorithm($algorithm)
43
    {
44
        $this->algorithm = $algorithm;
45
        return $this;
46
    }
47
48
    /**
49
     * Adds as array
50
     *
51
     * @return self
52
     * @param mixed $array
53
     */
54
    public function addToAnyElement($array)
55
    {
56
        $this->anyElement[] = $array;
57
        return $this;
58
    }
59
60
    /**
61
     * isset anyElement
62
     *
63
     * @param scalar $index
64
     * @return boolean
65
     */
66
    public function issetAnyElement($index)
67
    {
68
        return isset($this->anyElement[$index]);
69
    }
70
71
    /**
72
     * unset anyElement
73
     *
74
     * @param scalar $index
75
     * @return void
76
     */
77
    public function unsetAnyElement($index)
78
    {
79
        unset($this->anyElement[$index]);
80
    }
81
82
    /**
83
     * Gets as anyElement
84
     *
85
     * @return mixed[]
86
     */
87
    public function getAnyElement()
88
    {
89
        return $this->anyElement;
90
    }
91
92
    /**
93
     * Sets a new anyElement
94
     *
95
     * @param mixed[] $anyElement
96
     * @return self
97
     */
98
    public function setAnyElement(array $anyElement)
99
    {
100
        $this->anyElement = $anyElement;
101
        return $this;
102
    }
103
104
105
}
106
107