Completed
Pull Request — develop (#2)
by Adam
01:53
created

ToneResponse::getCode()   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 0
1
<?php
2
/**
3
 * Tone Response class
4
 */
5
6
namespace IBM\Watson\ToneAnalyzer\Message;
7
8
use IBM\Watson\Common\Message\AbstractResponse;
9
10
/**
11
 * Tone Response class
12
 * @see AbstractResponse
13
 */
14
class ToneResponse extends AbstractResponse
15
{
16
    /**
17
     * Get response code
18
     *
19
     * @return int
20
     */
21
    public function getCode()
22
    {
23
        return $this->request->getCode();
0 ignored issues
show
Bug introduced by
The method getCode() does not seem to exist on object<IBM\Watson\Common...ssage\RequestInterface>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
24
    }
25
}
26