Completed
Push — master ( d9e0d9...617fb5 )
by Risan Bagja
06:12 queued 04:43
created

PlainTextSigner::getMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Risan\OAuth1\Signature;
4
5
class PlainTextSigner implements SignerInterface, KeyBasedSignerInterface
6
{
7
    use CanGetSigningKey;
8
9
    /**
10
     * {@inheritdoc}
11
     */
12 1
    public function getMethod()
13
    {
14 1
        return 'PLAINTEXT';
15
    }
16
17
    /**
18
     * {@inheritdoc}
19
     */
20 1
    public function sign($uri, array $parameters = [], $httpMethod = 'POST')
21
    {
22 1
        return $this->getKey();
23
    }
24
}
25