1 | <?php |
||
9 | class ScriptWitness extends StaticCollection implements ScriptWitnessInterface |
||
10 | { |
||
11 | /** |
||
12 | * ScriptWitness constructor. |
||
13 | * @param BufferInterface[] $sigValues |
||
14 | */ |
||
15 | public function __construct(array $sigValues) |
||
25 | |||
26 | public function __clone() |
||
35 | |||
36 | /** |
||
37 | * @return BufferInterface |
||
38 | */ |
||
39 | public function bottom() |
||
43 | |||
44 | /** |
||
45 | * @return BufferInterface |
||
46 | */ |
||
47 | public function current() |
||
51 | |||
52 | /** |
||
53 | * @param int $offset |
||
54 | * @return BufferInterface |
||
55 | */ |
||
56 | public function offsetGet($offset) |
||
64 | |||
65 | /** |
||
66 | * @param int $start |
||
67 | * @param int $length |
||
68 | * @return ScriptWitness |
||
69 | */ |
||
70 | public function slice($start, $length) |
||
80 | |||
81 | /** |
||
82 | * @return \BitWasp\Buffertools\BufferInterface |
||
83 | */ |
||
84 | public function getBuffer() |
||
88 | } |
||
89 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.