Completed
Pull Request — master (#9)
by Asmir
163:43 queued 133:54
created

setUserSecurityKeyObject()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Serializer;
3
4
use GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\SecurityKeyPair;
5
6
abstract class AbstractWsSecurityFilter
7
{
8
    /**
9
     * Web Services Security Utility namespace.
10
     */
11
    const NS_WSU = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd';
12
13
    /**
14
     * Web Services Security Extension namespace.
15
     */
16
    const NS_WSS = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';
17
18
    /**
19
     * Service SecurityKeyPair.
20
     *
21
     * @var SecurityKeyPair
22
     */
23
    protected $serviceSecurityKey;
24
25
    /**
26
     * User SecurityKeyPair.
27
     *
28
     * @var SecurityKeyPair
29
     */
30
    protected $userSecurityKey;
31
32
    /**
33
     * Set service security key.
34
     *
35
     * @param SecurityKeyPair $serviceSecurityKey Service security key
36
     *
37
     * @return void
38
     */
39
    public function setServiceSecurityKeyObject(SecurityKeyPair $serviceSecurityKey = null)
40
    {
41
        $this->serviceSecurityKey = $serviceSecurityKey;
42
    }
43
44
    /**
45
     * Set user security key.
46
     *
47
     * @param SecurityKeyPair $userSecurityKey User security key
48
     *
49
     * @return void
50
     */
51
    public function setUserSecurityKeyObject(SecurityKeyPair $userSecurityKey = null)
52
    {
53
        $this->userSecurityKey = $userSecurityKey;
54
    }
55
}
56