Completed
Pull Request — master (#12)
by
unknown
12:56 queued 11:16
created

AbstractRequest::setPassword()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Omnipay\Paysera\Message;
4
5
use Omnipay\Common\Message\AbstractRequest as OmnipayAbstractRequest;
6
7
abstract class AbstractRequest extends OmnipayAbstractRequest
8
{
9
    /**
10
     * Get the Project ID.
11
     *
12
     * @return string
13
     */
14 5
    public function getProjectId()
15
    {
16 5
        return $this->getParameter('projectId');
17
    }
18
19
    /**
20
     * Set the Project ID.
21
     *
22
     * @param  string  $value
23
     * @return $this
24
     */
25 16
    public function setProjectId($value)
26
    {
27 16
        return $this->setParameter('projectId', $value);
28
    }
29
30
    /**
31
     * Get the password.
32
     *
33
     * @return string
34
     */
35 9
    public function getPassword()
36
    {
37 9
        return $this->getParameter('password');
38
    }
39
40
    /**
41
     * Set the password.
42
     *
43
     * @param  string  $value
44
     * @return $this
45
     */
46 16
    public function setPassword($value)
47
    {
48 16
        return $this->setParameter('password', $value);
49
    }
50
}
51