Completed
Pull Request — master (#9)
by Asmir
148:13 queued 118:12
created

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