| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param AbstractSignatureMethod $signatureMethod |
||
| 42 | * @param Consumer $consumer |
||
| 43 | * @param Token $token |
||
| 44 | */ |
||
| 45 | public function signRequest(AbstractSignatureMethod $signatureMethod, Consumer $consumer, Token $token) |
||
| 46 | { |
||
| 47 | $this->parameters['oauth_signature_method'] = $signatureMethod->getName(); |
||
| 48 | $this->parameters['oauth_signature'] = $signatureMethod->buildSignature( |
||
| 49 | $this, |
||
| 50 | $consumer, |
||
| 51 | $token |
||
| 52 | ); |
||
| 53 | |||
| 54 | $this->headers['Authorization'] = $this->authorizationHeader(); |
||
| 55 | } |
||
| 69 |