| 1 | <?php |
||
| 8 | abstract class SigHash implements SigHashInterface |
||
| 9 | { |
||
| 10 | const V0 = 0; |
||
| 11 | const V1 = 1; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var TransactionInterface |
||
| 15 | */ |
||
| 16 | protected $tx; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * SigHash constructor. |
||
| 20 | * @param TransactionInterface $transaction |
||
| 21 | */ |
||
| 22 | 386 | public function __construct(TransactionInterface $transaction) |
|
| 26 | |||
| 27 | abstract public function calculate(ScriptInterface $txOutScript, $inputToSign, $sighashType = SigHash::ALL); |
||
| 28 | } |
||
| 29 |
This check looks for accesses to local static members using the fully qualified name instead of
self::.While this is perfectly valid, the fully qualified name of
Certificate::TRIPLEDES_CBCcould just as well be replaced byself::TRIPLEDES_CBC. Referencing local members withself::assured the access will still work when the class is renamed, makes it perfectly clear that the member is in fact local and will usually be shorter.