Code Duplication    Length = 71-71 lines in 4 locations

src/WssWsSecurity/Secext/AttributedStringType.php 1 location

@@ 11-81 (lines=71) @@
8
 * This type represents an element with arbitrary attributes.
9
 * XSD Type: AttributedString
10
 */
11
class AttributedStringType
12
{
13
14
    /**
15
     * @property string $__value
16
     */
17
    private $__value = null;
18
19
    /**
20
     * @property string $id
21
     */
22
    private $id = null;
23
24
    /**
25
     * Construct
26
     *
27
     * @param string $value
28
     */
29
    public function __construct($value)
30
    {
31
        $this->value($value);
32
    }
33
34
    /**
35
     * Gets or sets the inner value
36
     *
37
     * @param string $value
38
     * @return string
39
     */
40
    public function value()
41
    {
42
        if ($args = func_get_args()) {
43
            $this->__value = $args[0];
44
        }
45
        return $this->__value;
46
    }
47
48
    /**
49
     * Gets a string value
50
     *
51
     * @return string
52
     */
53
    public function __toString()
54
    {
55
        return strval($this->__value);
56
    }
57
58
    /**
59
     * Gets as id
60
     *
61
     * @return string
62
     */
63
    public function getId()
64
    {
65
        return $this->id;
66
    }
67
68
    /**
69
     * Sets a new id
70
     *
71
     * @param string $id
72
     * @return self
73
     */
74
    public function setId($id)
75
    {
76
        $this->id = $id;
77
        return $this;
78
    }
79
80
81
}
82
83

src/WssWsSecurity/Utility/AttributedDateTimeType.php 1 location

@@ 12-82 (lines=71) @@
9
 * arbitrary attributes.
10
 * XSD Type: AttributedDateTime
11
 */
12
class AttributedDateTimeType
13
{
14
15
    /**
16
     * @property string $__value
17
     */
18
    private $__value = null;
19
20
    /**
21
     * @property string $id
22
     */
23
    private $id = null;
24
25
    /**
26
     * Construct
27
     *
28
     * @param string $value
29
     */
30
    public function __construct($value)
31
    {
32
        $this->value($value);
33
    }
34
35
    /**
36
     * Gets or sets the inner value
37
     *
38
     * @param string $value
39
     * @return string
40
     */
41
    public function value()
42
    {
43
        if ($args = func_get_args()) {
44
            $this->__value = $args[0];
45
        }
46
        return $this->__value;
47
    }
48
49
    /**
50
     * Gets a string value
51
     *
52
     * @return string
53
     */
54
    public function __toString()
55
    {
56
        return strval($this->__value);
57
    }
58
59
    /**
60
     * Gets as id
61
     *
62
     * @return string
63
     */
64
    public function getId()
65
    {
66
        return $this->id;
67
    }
68
69
    /**
70
     * Sets a new id
71
     *
72
     * @param string $id
73
     * @return self
74
     */
75
    public function setId($id)
76
    {
77
        $this->id = $id;
78
        return $this;
79
    }
80
81
82
}
83
84

src/WssWsSecurity/Utility/AttributedURIType.php 1 location

@@ 12-82 (lines=71) @@
9
 * attributes.
10
 * XSD Type: AttributedURI
11
 */
12
class AttributedURIType
13
{
14
15
    /**
16
     * @property string $__value
17
     */
18
    private $__value = null;
19
20
    /**
21
     * @property string $id
22
     */
23
    private $id = null;
24
25
    /**
26
     * Construct
27
     *
28
     * @param string $value
29
     */
30
    public function __construct($value)
31
    {
32
        $this->value($value);
33
    }
34
35
    /**
36
     * Gets or sets the inner value
37
     *
38
     * @param string $value
39
     * @return string
40
     */
41
    public function value()
42
    {
43
        if ($args = func_get_args()) {
44
            $this->__value = $args[0];
45
        }
46
        return $this->__value;
47
    }
48
49
    /**
50
     * Gets a string value
51
     *
52
     * @return string
53
     */
54
    public function __toString()
55
    {
56
        return strval($this->__value);
57
    }
58
59
    /**
60
     * Gets as id
61
     *
62
     * @return string
63
     */
64
    public function getId()
65
    {
66
        return $this->id;
67
    }
68
69
    /**
70
     * Sets a new id
71
     *
72
     * @param string $id
73
     * @return self
74
     */
75
    public function setId($id)
76
    {
77
        $this->id = $id;
78
        return $this;
79
    }
80
81
82
}
83
84

src/WssWsSecurity/XmlSign/SignatureValueType.php 1 location

@@ 11-81 (lines=71) @@
8
 *
9
 * XSD Type: SignatureValueType
10
 */
11
class SignatureValueType
12
{
13
14
    /**
15
     * @property mixed $__value
16
     */
17
    private $__value = null;
18
19
    /**
20
     * @property string $id
21
     */
22
    private $id = null;
23
24
    /**
25
     * Construct
26
     *
27
     * @param mixed $value
28
     */
29
    public function __construct($value)
30
    {
31
        $this->value($value);
32
    }
33
34
    /**
35
     * Gets or sets the inner value
36
     *
37
     * @param mixed $value
38
     * @return mixed
39
     */
40
    public function value()
41
    {
42
        if ($args = func_get_args()) {
43
            $this->__value = $args[0];
44
        }
45
        return $this->__value;
46
    }
47
48
    /**
49
     * Gets a string value
50
     *
51
     * @return string
52
     */
53
    public function __toString()
54
    {
55
        return strval($this->__value);
56
    }
57
58
    /**
59
     * Gets as id
60
     *
61
     * @return string
62
     */
63
    public function getId()
64
    {
65
        return $this->id;
66
    }
67
68
    /**
69
     * Sets a new id
70
     *
71
     * @param string $id
72
     * @return self
73
     */
74
    public function setId($id)
75
    {
76
        $this->id = $id;
77
        return $this;
78
    }
79
80
81
}
82
83