1 | <?php |
||
9 | class ScriptWitness extends StaticCollection implements ScriptWitnessInterface |
||
10 | { |
||
11 | /** |
||
12 | * ScriptWitness constructor. |
||
13 | * @param BufferInterface[] $sigValues |
||
14 | */ |
||
15 | 90 | 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 | 30 | public function current() |
|
51 | |||
52 | /** |
||
53 | * @param int $offset |
||
54 | * @return BufferInterface |
||
55 | */ |
||
56 | 30 | public function offsetGet($offset) |
|
64 | |||
65 | /** |
||
66 | * @param int $start |
||
67 | * @param int $length |
||
68 | * @return ScriptWitness |
||
69 | */ |
||
70 | 18 | public function slice($start, $length) |
|
80 | |||
81 | /** |
||
82 | * @param ScriptWitnessInterface $witness |
||
83 | * @return bool |
||
84 | */ |
||
85 | public function equals(ScriptWitnessInterface $witness) |
||
100 | |||
101 | /** |
||
102 | * @return \BitWasp\Buffertools\BufferInterface |
||
103 | */ |
||
104 | 54 | public function getBuffer() |
|
108 | } |
||
109 |
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.